Class: Blimpy::Boxes::OpenStack::FloatingIp

Inherits:
Object
  • Object
show all
Defined in:
lib/blimpy/boxes/openstack.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address, id) ⇒ FloatingIp

Returns a new instance of FloatingIp.



16
17
18
19
# File 'lib/blimpy/boxes/openstack.rb', line 16

def initialize(address, id)
  @address = address
  @id = id
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



14
15
16
# File 'lib/blimpy/boxes/openstack.rb', line 14

def address
  @address
end

#idObject

Returns the value of attribute id.



14
15
16
# File 'lib/blimpy/boxes/openstack.rb', line 14

def id
  @id
end

Instance Method Details

#to_yaml(*args) ⇒ Object



21
22
23
# File 'lib/blimpy/boxes/openstack.rb', line 21

def to_yaml(*args)
  {:address => address, :id => id}.to_yaml
end