Class: Puttygen::Keypair
- Inherits:
-
Object
- Object
- Puttygen::Keypair
- Defined in:
- lib/puttygen.rb
Overview
A public and private key pair.
Instance Attribute Summary collapse
-
#private ⇒ Object
readonly
Returns the value of attribute private.
-
#public ⇒ Object
readonly
Returns the value of attribute public.
Instance Method Summary collapse
-
#initialize(public, private) ⇒ Keypair
constructor
A new instance of Keypair.
Constructor Details
#initialize(public, private) ⇒ Keypair
Returns a new instance of Keypair.
23 24 25 26 |
# File 'lib/puttygen.rb', line 23 def initialize(public, private) @public = public @private = private end |
Instance Attribute Details
#private ⇒ Object (readonly)
Returns the value of attribute private.
22 23 24 |
# File 'lib/puttygen.rb', line 22 def private @private end |
#public ⇒ Object (readonly)
Returns the value of attribute public.
22 23 24 |
# File 'lib/puttygen.rb', line 22 def public @public end |