Module: TinyerpRuby::Poster

Defined in:
lib/tinyerp_ruby/poster.rb

Class Method Summary collapse

Class Method Details

.call(connection, service, params) ⇒ Object



10
11
12
13
14
15
# File 'lib/tinyerp_ruby/poster.rb', line 10

def call(connection, service, params)
  @connection = connection
  webservice = Savon.client(wsdl: @connection.base_url, convert_request_keys_to: :none, filters: [:token])
  response = webservice.call(service, message: formatted_params(params))
  parse service, response
end