Class: HP::Cloud::LbAlgorithms

Inherits:
FogCollection show all
Defined in:
lib/hpcloud/lb_algorithms.rb

Instance Attribute Summary

Attributes inherited from FogCollection

#items, #name

Instance Method Summary collapse

Methods inherited from FogCollection

#create, #empty?, #filter, #get, #get_array, #unique

Constructor Details

#initializeLbAlgorithms

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