Class: Conjure::DigitalOcean::Key

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Key

Returns a new instance of Key.



6
7
8
9
# File 'lib/conjure/digital_ocean/key.rb', line 6

def initialize(data)
  @id = data["id"]
  @public_key = data["public_key"]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/conjure/digital_ocean/key.rb', line 4

def id
  @id
end

#public_keyObject (readonly)

Returns the value of attribute public_key.



4
5
6
# File 'lib/conjure/digital_ocean/key.rb', line 4

def public_key
  @public_key
end