Class: LoadBalancer

Inherits:
BaseModel show all
Defined in:
lib/deltacloud/models/load_balancer.rb

Defined Under Namespace

Classes: Listener

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

attr_accessor, attributes, #attributes, #id, #initialize, #to_hash, #to_json

Constructor Details

This class inherits a constructor from BaseModel

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



26
27
28
# File 'lib/deltacloud/models/load_balancer.rb', line 26

def created_at
  @created_at
end

#instancesObject

Returns the value of attribute instances.



24
25
26
# File 'lib/deltacloud/models/load_balancer.rb', line 24

def instances
  @instances
end

#listenersObject

Returns the value of attribute listeners.



23
24
25
# File 'lib/deltacloud/models/load_balancer.rb', line 23

def listeners
  @listeners
end

#public_addressesObject

Returns the value of attribute public_addresses.



25
26
27
# File 'lib/deltacloud/models/load_balancer.rb', line 25

def public_addresses
  @public_addresses
end

#realmsObject

Returns the value of attribute realms.



22
23
24
# File 'lib/deltacloud/models/load_balancer.rb', line 22

def realms
  @realms
end

Instance Method Details

#add_listener(opts) ⇒ Object



28
29
30
# File 'lib/deltacloud/models/load_balancer.rb', line 28

def add_listener(opts)
  @listeners << Listener.new(opts)
end