Class: Puttygen::Keypair

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

Overview

A public and private key pair.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#privateObject (readonly)

Returns the value of attribute private.



22
23
24
# File 'lib/puttygen.rb', line 22

def private
  @private
end

#publicObject (readonly)

Returns the value of attribute public.



22
23
24
# File 'lib/puttygen.rb', line 22

def public
  @public
end