Class: OmfCommon::Key

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
omf_common/lib/omf_common/key.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) private_key

Returns the value of attribute private_key



13
14
15
# File 'omf_common/lib/omf_common/key.rb', line 13

def private_key
  @private_key
end

Instance Method Details

- (Object) import(filename)



15
16
17
# File 'omf_common/lib/omf_common/key.rb', line 15

def import(filename)
  self.private_key = OpenSSL::PKey.read(File.read(filename))
end