Method: B2bCenterApi::WebService::Remote#command

Defined in:
lib/b2b_center_api/web_service/remote.rb

#command(name, params) ⇒ Object



7
8
9
10
11
12
# File 'lib/b2b_center_api/web_service/remote.rb', line 7

def command(name, params)
  auth = B2bCenterApi::Settings.auth_options
  params = auth.merge(params)
  res = @client.call(method_fullname(name), message: params)
  Response.new(res)
end