Class: Noise::Key

Inherits:
Object
  • Object
show all
Defined in:
lib/noise/key.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject (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_keyObject (readonly)

Returns the value of attribute public_key.



5
6
7
# File 'lib/noise/key.rb', line 5

def public_key
  @public_key
end