Class: Blimpy::Boxes::OpenStack::FloatingIp
- Inherits:
-
Object
- Object
- Blimpy::Boxes::OpenStack::FloatingIp
- Defined in:
- lib/blimpy/boxes/openstack.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(address, id) ⇒ FloatingIp
constructor
A new instance of FloatingIp.
- #to_yaml(*args) ⇒ Object
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
#address ⇒ Object
Returns the value of attribute address.
14 15 16 |
# File 'lib/blimpy/boxes/openstack.rb', line 14 def address @address end |
#id ⇒ Object
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 |