Class: Loadbalancers::Node

Inherits:
Object
  • Object
show all
Defined in:
app/models/loadbalancers/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Node

Returns a new instance of Node.



7
8
9
# File 'app/models/loadbalancers/node.rb', line 7

def initialize(attrs = {})
  @address, @port, @type, @condition = *attrs.values_at(:address, :port, :type, :condition)
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



2
3
4
# File 'app/models/loadbalancers/node.rb', line 2

def address
  @address
end

#conditionObject (readonly)

Returns the value of attribute condition.



5
6
7
# File 'app/models/loadbalancers/node.rb', line 5

def condition
  @condition
end

#portObject (readonly)

Returns the value of attribute port.



3
4
5
# File 'app/models/loadbalancers/node.rb', line 3

def port
  @port
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'app/models/loadbalancers/node.rb', line 4

def type
  @type
end