Class: Nephophobia::Response::Address

Inherits:
Object
  • Object
show all
Defined in:
lib/nephophobia/response/address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject (readonly)

Returns the value of attribute attributes.



4
5
6
# File 'lib/nephophobia/response/address.rb', line 4

def attributes
  @attributes
end

#floating_ipObject (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_idObject (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

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'lib/nephophobia/response/address.rb', line 4

def status
  @status
end