Class: Loadbalancers::Node
- Inherits:
-
Object
- Object
- Loadbalancers::Node
- Defined in:
- app/models/loadbalancers/node.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Node
constructor
A new instance of Node.
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
#address ⇒ Object (readonly)
Returns the value of attribute address.
2 3 4 |
# File 'app/models/loadbalancers/node.rb', line 2 def address @address end |
#condition ⇒ Object (readonly)
Returns the value of attribute condition.
5 6 7 |
# File 'app/models/loadbalancers/node.rb', line 5 def condition @condition end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
3 4 5 |
# File 'app/models/loadbalancers/node.rb', line 3 def port @port end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'app/models/loadbalancers/node.rb', line 4 def type @type end |