Class: Nephophobia::Response::Address
- Inherits:
-
Object
- Object
- Nephophobia::Response::Address
- Defined in:
- lib/nephophobia/response/address.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#floating_ip ⇒ Object
readonly
Returns the value of attribute floating_ip.
-
#instance_id ⇒ Object
readonly
Returns the value of attribute instance_id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Address
constructor
A new instance of Address.
Constructor Details
#initialize(attributes) ⇒ Address
Returns a new instance of Address.
6 7 8 9 10 |
# File 'lib/nephophobia/response/address.rb', line 6 def initialize attributes @floating_ip = attributes['publicIp'] @instance_id = attributes['instanceId'] @status = attributes['item'] end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
4 5 6 |
# File 'lib/nephophobia/response/address.rb', line 4 def attributes @attributes end |
#floating_ip ⇒ Object (readonly)
Returns the value of attribute floating_ip.
4 5 6 |
# File 'lib/nephophobia/response/address.rb', line 4 def floating_ip @floating_ip end |
#instance_id ⇒ Object (readonly)
Returns the value of attribute instance_id.
4 5 6 |
# File 'lib/nephophobia/response/address.rb', line 4 def instance_id @instance_id end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/nephophobia/response/address.rb', line 4 def status @status end |