Class: OpenStack::Compute::FloatingIPInfo
- Inherits:
-
Object
- Object
- 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.
90 91 92 93 94 95 96 |
# File 'lib/openstack/compute/address.rb', line 90 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.
84 85 86 |
# File 'lib/openstack/compute/address.rb', line 84 def address @address end |
#instance_uuid ⇒ Object (readonly)
Returns the value of attribute instance_uuid.
85 86 87 |
# File 'lib/openstack/compute/address.rb', line 85 def instance_uuid @instance_uuid end |
#interface ⇒ Object (readonly)
Returns the value of attribute interface.
86 87 88 |
# File 'lib/openstack/compute/address.rb', line 86 def interface @interface end |
#pool ⇒ Object (readonly)
Returns the value of attribute pool.
87 88 89 |
# File 'lib/openstack/compute/address.rb', line 87 def pool @pool end |
#project_id ⇒ Object (readonly)
Returns the value of attribute project_id.
88 89 90 |
# File 'lib/openstack/compute/address.rb', line 88 def project_id @project_id end |