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.



73
74
75
76
77
78
79
# File 'lib/openstack/compute/address.rb', line 73

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.



67
68
69
# File 'lib/openstack/compute/address.rb', line 67

def fixed_ip
  @fixed_ip
end

#idObject (readonly)

Returns the value of attribute id.



68
69
70
# File 'lib/openstack/compute/address.rb', line 68

def id
  @id
end

#instance_idObject (readonly)

Returns the value of attribute instance_id.



69
70
71
# File 'lib/openstack/compute/address.rb', line 69

def instance_id
  @instance_id
end

#ipObject (readonly)

Returns the value of attribute ip.



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

def ip
  @ip
end

#poolObject (readonly)

Returns the value of attribute pool.



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

def pool
  @pool
end