Class: HP::Cloud::LbAlgorithms
- Inherits:
-
FogCollection
- Object
- FogCollection
- HP::Cloud::LbAlgorithms
- Defined in:
- lib/hpcloud/lb_algorithms.rb
Instance Attribute Summary
Attributes inherited from FogCollection
Instance Method Summary collapse
-
#initialize ⇒ LbAlgorithms
constructor
A new instance of LbAlgorithms.
- #matches(arg, item) ⇒ Object
Methods inherited from FogCollection
#create, #empty?, #filter, #get, #get_array, #unique
Constructor Details
#initialize ⇒ LbAlgorithms
Returns a new instance of LbAlgorithms.
27 28 29 30 |
# File 'lib/hpcloud/lb_algorithms.rb', line 27 def initialize super("load balancer algorithm") @items = @connection.lb.algorithms end |
Instance Method Details
#matches(arg, item) ⇒ Object
32 33 34 |
# File 'lib/hpcloud/lb_algorithms.rb', line 32 def matches(arg, item) return (arg == item.name.to_s) end |