class B2bCenterApi::WebService::Remote
Public Class Methods
new(client)
click to toggle source
# File lib/b2b_center_api/web_service/remote.rb, line 21 def initialize(client) @client = client end
Public Instance Methods
command(name, params)
click to toggle source
# 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
command_with_attachments(name, attachments, params)
click to toggle source
# File lib/b2b_center_api/web_service/remote.rb, line 14 def command_with_attachments(name, attachments, params) auth = B2bCenterApi::Settings.auth_options params = auth.merge(params) res = @client.call(method_fullname(name), message: params, attachments: attachments) Response.new(res) end
Private Instance Methods
method_fullname(name)
click to toggle source
# File lib/b2b_center_api/web_service/remote.rb, line 27 def method_fullname(name) format('%s_%s', soap_method_prefix, name).to_sym end