Class: OpenStack::Compute::FloatingIPInfo
- Defined in:
- lib/openstack/compute/address.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#instance_uuid ⇒ Object
readonly
Returns the value of attribute instance_uuid.
-
#interface ⇒ Object
readonly
Returns the value of attribute interface.
-
#pool ⇒ Object
readonly
Returns the value of attribute pool.
-
#project_id ⇒ Object
readonly
Returns the value of attribute project_id.
Instance Method Summary collapse
-
#initialize(info_hash) ⇒ FloatingIPInfo
constructor
A new instance of FloatingIPInfo.
Constructor Details
#initialize(info_hash) ⇒ FloatingIPInfo
Returns a new instance of FloatingIPInfo.
93 94 95 96 97 98 99 |
# File 'lib/openstack/compute/address.rb', line 93 def initialize(info_hash) @address = info_hash['address'] @instance_uuid = info_hash['instance_uuid'] @interface = info_hash['interface'] @pool = info_hash['pool'] @project_id = info_hash['project_id'] end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
87 88 89 |
# File 'lib/openstack/compute/address.rb', line 87 def address @address end |
#instance_uuid ⇒ Object (readonly)
Returns the value of attribute instance_uuid.
88 89 90 |
# File 'lib/openstack/compute/address.rb', line 88 def instance_uuid @instance_uuid end |
#interface ⇒ Object (readonly)
Returns the value of attribute interface.
89 90 91 |
# File 'lib/openstack/compute/address.rb', line 89 def interface @interface end |
#pool ⇒ Object (readonly)
Returns the value of attribute pool.
90 91 92 |
# File 'lib/openstack/compute/address.rb', line 90 def pool @pool end |
#project_id ⇒ Object (readonly)
Returns the value of attribute project_id.
91 92 93 |
# File 'lib/openstack/compute/address.rb', line 91 def project_id @project_id end |