Class: Noise::Key
- Inherits:
-
Object
- Object
- Noise::Key
- Defined in:
- lib/noise/key.rb
Instance Attribute Summary collapse
-
#private_key ⇒ Object
readonly
Returns the value of attribute private_key.
-
#public_key ⇒ Object
readonly
Returns the value of attribute public_key.
Instance Method Summary collapse
-
#initialize(private_key, public_key) ⇒ Key
constructor
A new instance of Key.
Constructor Details
#initialize(private_key, public_key) ⇒ Key
Returns a new instance of Key.
7 8 9 10 |
# File 'lib/noise/key.rb', line 7 def initialize(private_key, public_key) @private_key = private_key @public_key = public_key end |
Instance Attribute Details
#private_key ⇒ Object (readonly)
Returns the value of attribute private_key.
5 6 7 |
# File 'lib/noise/key.rb', line 5 def private_key @private_key end |
#public_key ⇒ Object (readonly)
Returns the value of attribute public_key.
5 6 7 |
# File 'lib/noise/key.rb', line 5 def public_key @public_key end |