Class: B2bCenterApi::WebService::Remote
- Inherits:
-
Object
- Object
- B2bCenterApi::WebService::Remote
- Defined in:
- lib/b2b_center_api/web_service/remote.rb
Direct Known Subclasses
Instance Method Summary collapse
- #command(name, params) ⇒ Object
-
#initialize(client) ⇒ Remote
constructor
A new instance of Remote.
Constructor Details
#initialize(client) ⇒ Remote
Returns a new instance of Remote.
14 15 16 |
# File 'lib/b2b_center_api/web_service/remote.rb', line 14 def initialize(client) @client = client end |
Instance Method Details
#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. params = auth.merge(params) res = @client.call(method_fullname(name), message: params) Response.new(res) end |