# File lib/fog/hp/models/lb/protocols.rb, line 10 def all data = service.list_protocols.body['protocols'] load(data) end
# File lib/fog/hp/models/lb/protocols.rb, line 15 def get(name) data = service.list_protocols.body['protocols'] protocol = data.find {|p| p['name'] == name} new(protocol) rescue Fog::HP::LB::NotFound nil end