Class: OmfCommon::Key

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#private_keyObject

Returns the value of attribute private_key.



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

def private_key
  @private_key
end

Instance Method Details

#import(filename) ⇒ Object



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

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