Method: Inforouter::Client#call

Defined in:
lib/inforouter/client.rb

#call(method, message = {}) ⇒ Object

Make a safe SOAP call. Will raise a Inforouter::Errors::SOAPError on error.

Parameters:

  • method (Symbol)
  • message (Hash) (defaults to: {})


47
48
49
50
51
# File 'lib/inforouter/client.rb', line 47

def call(method, message = {})
  safe do
    @client.call method, :message => message.merge(authentication_params)
  end
end