Sha256: 0b01958888f68a6e78bc8b6d11727038615cb688028fa90d4fe1794184a6d454
Contents?: true
Size: 804 Bytes
Versions: 35
Compression:
Stored size: 804 Bytes
Contents
module Fog module HP class LB # List protocols # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'protocols'<~Array>: # * 'name'<~String> - Name of the protocol # * 'port'<~String> - Port of the protocol class Real def list_protocols response = request( :expects => 200, :method => 'GET', :path => 'protocols' ) response end end class Mock def list_protocols response = Excon::Response.new protocols = self.data[:protocols].values response.status = 200 response.body = { 'protocols' => protocols } response end end end end end
Version data entries
35 entries across 35 versions & 2 rubygems