Class: OpenStack::Compute::FloatingIPAddress
- Defined in:
- lib/openstack/compute/address.rb
Instance Attribute Summary collapse
-
#fixed_ip ⇒ Object
readonly
Returns the value of attribute fixed_ip.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#instance_id ⇒ Object
readonly
Returns the value of attribute instance_id.
-
#ip ⇒ Object
readonly
Returns the value of attribute ip.
-
#pool ⇒ Object
readonly
Returns the value of attribute pool.
Instance Method Summary collapse
-
#initialize(addr_hash) ⇒ FloatingIPAddress
constructor
A new instance of FloatingIPAddress.
Constructor Details
#initialize(addr_hash) ⇒ FloatingIPAddress
Returns a new instance of FloatingIPAddress.
76 77 78 79 80 81 82 |
# File 'lib/openstack/compute/address.rb', line 76 def initialize(addr_hash) @fixed_ip = addr_hash["fixed_ip"] @id = addr_hash["id"] @instance_id = addr_hash["instance_id"] @ip = addr_hash["ip"] @pool = addr_hash["pool"] end |
Instance Attribute Details
#fixed_ip ⇒ Object (readonly)
Returns the value of attribute fixed_ip.
70 71 72 |
# File 'lib/openstack/compute/address.rb', line 70 def fixed_ip @fixed_ip end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
71 72 73 |
# File 'lib/openstack/compute/address.rb', line 71 def id @id end |
#instance_id ⇒ Object (readonly)
Returns the value of attribute instance_id.
72 73 74 |
# File 'lib/openstack/compute/address.rb', line 72 def instance_id @instance_id end |
#ip ⇒ Object (readonly)
Returns the value of attribute ip.
73 74 75 |
# File 'lib/openstack/compute/address.rb', line 73 def ip @ip end |
#pool ⇒ Object (readonly)
Returns the value of attribute pool.
74 75 76 |
# File 'lib/openstack/compute/address.rb', line 74 def pool @pool end |