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.



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

#addressObject (readonly)

Returns the value of attribute address.



84
85
86
# File 'lib/openstack/compute/address.rb', line 84

def address
  @address
end

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

#interfaceObject (readonly)

Returns the value of attribute interface.



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

def interface
  @interface
end

#poolObject (readonly)

Returns the value of attribute pool.



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

def pool
  @pool
end

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