Class: Deltacloud::LoadBalancer::Listener

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

Instance Attribute Summary collapse

Attributes inherited from BaseModel

#description, #name

Instance Method Summary collapse

Methods inherited from BaseModel

attr_accessor, attributes, #attributes, #id, #initialize, #to_entity

Constructor Details

This class inherits a constructor from Deltacloud::BaseModel

Instance Attribute Details

#instance_portObject

Returns the value of attribute instance_port.



45
46
47
# File 'lib/deltacloud/models/load_balancer.rb', line 45

def instance_port
  @instance_port
end

#load_balancer_portObject

Returns the value of attribute load_balancer_port.



44
45
46
# File 'lib/deltacloud/models/load_balancer.rb', line 44

def load_balancer_port
  @load_balancer_port
end

#protocolObject

Returns the value of attribute protocol.



43
44
45
# File 'lib/deltacloud/models/load_balancer.rb', line 43

def protocol
  @protocol
end

Instance Method Details

#to_hash(context) ⇒ Object



47
48
49
50
51
52
53
54
# File 'lib/deltacloud/models/load_balancer.rb', line 47

def to_hash(context)
  {
    :id => self.id,
    :protocol => protocol,
    :load_balancer_port => load_balancer_port,
    :instance_port => instance_port
  }
end