Class: OmfCommon::Key
- Inherits:
-
Object
- Object
- OmfCommon::Key
- Includes:
- Singleton
- Defined in:
- lib/omf_common/key.rb
Instance Attribute Summary collapse
-
#private_key ⇒ Object
Returns the value of attribute private_key.
Instance Method Summary collapse
Instance Attribute Details
#private_key ⇒ Object
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 |