class Fog::HP::LB::Algorithms
Public Instance Methods
all()
click to toggle source
# File lib/fog/hp/models/lb/algorithms.rb, line 10 def all data = service.list_algorithms.body['algorithms'] load(data) end
get(name)
click to toggle source
# File lib/fog/hp/models/lb/algorithms.rb, line 15 def get(name) data = service.list_algorithms.body['algorithms'] algorithm = data.find {|algo| algo['name'] == name} new(algorithm) rescue Fog::HP::LB::NotFound nil end