Module: Sem4rSoap::HttpConnector

Defined in:
lib/sem4r_soap/http_connector.rb

Defined Under Namespace

Classes: ConnectorHttpClient, ConnectorNetHttp

Class Method Summary collapse

Class Method Details

.get(logger = nil, type = :http_client) ⇒ Object



29
30
31
32
33
34
35
36
37
38
# File 'lib/sem4r_soap/http_connector.rb', line 29

def self.get(logger = nil, type = :http_client)
  case type
    when :http_client
      ConnectorHttpClient.new(logger)
    when :net_http
      ConnectorNetHttp.new(logger)
    else
      raise "unknow connector type"
  end
end