Class: Conjure::DigitalOcean::Key
- Inherits:
-
Object
- Object
- Conjure::DigitalOcean::Key
- Defined in:
- lib/conjure/digital_ocean/key.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#public_key ⇒ Object
readonly
Returns the value of attribute public_key.
Instance Method Summary collapse
-
#initialize(data) ⇒ Key
constructor
A new instance of Key.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/conjure/digital_ocean/key.rb', line 4 def id @id end |
#public_key ⇒ Object (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 |