Method: Parsec::Request::Base#client

Defined in:
lib/parsec/request/base.rb

#client(endpoint) ⇒ Object



24
25
26
27
28
29
# File 'lib/parsec/request/base.rb', line 24

def client(endpoint)
  Savon.client endpoint: "#{Parsec.configuration.host}/NewAvailabilityServlet/#{RESOURCES[endpoint]}",
               namespace: NAMESPACE,
               convert_request_keys_to: :camelcase,
               soap_header: security_tag
end