Class: OpenStack::Compute::FloatingIPInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/openstack/compute/address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject (readonly)

Returns the value of attribute address.



87
88
89
# File 'lib/openstack/compute/address.rb', line 87

def address
  @address
end

#instance_uuidObject (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

#interfaceObject (readonly)

Returns the value of attribute interface.



89
90
91
# File 'lib/openstack/compute/address.rb', line 89

def interface
  @interface
end

#poolObject (readonly)

Returns the value of attribute pool.



90
91
92
# File 'lib/openstack/compute/address.rb', line 90

def pool
  @pool
end

#project_idObject (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