Class: LoadBalancer::Listener

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

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

Constructor Details

This class inherits a constructor from BaseModel

Instance Attribute Details

#instance_portObject

Returns the value of attribute instance_port.



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

def instance_port
  @instance_port
end

#load_balancer_portObject

Returns the value of attribute load_balancer_port.



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

def load_balancer_port
  @load_balancer_port
end

#protocolObject

Returns the value of attribute protocol.



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

def protocol
  @protocol
end

Instance Method Details

#to_hash(context) ⇒ Object



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

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