Class: OpenStack::Compute::FloatingIPAddress

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_ipObject (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

#idObject (readonly)

Returns the value of attribute id.



71
72
73
# File 'lib/openstack/compute/address.rb', line 71

def id
  @id
end

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

#ipObject (readonly)

Returns the value of attribute ip.



73
74
75
# File 'lib/openstack/compute/address.rb', line 73

def ip
  @ip
end

#poolObject (readonly)

Returns the value of attribute pool.



74
75
76
# File 'lib/openstack/compute/address.rb', line 74

def pool
  @pool
end