Class: Worldline::Connect::SDK::V1::V1Client
- Inherits:
-
ApiResource
- Object
- ApiResource
- Worldline::Connect::SDK::V1::V1Client
- Defined in:
- lib/worldline/connect/sdk/v1/v1_client.rb
Overview
V1 client.
Thread safe.
Instance Attribute Summary
Attributes inherited from ApiResource
#client_meta_info, #communicator
Instance Method Summary collapse
-
#initialize(parent, path_context) ⇒ V1Client
constructor
A new instance of V1Client.
-
#merchant(merchant_id) ⇒ Worldline::Connect::SDK::V1::Merchant::MerchantClient
Resource /{merchantId}.
Constructor Details
#initialize(parent, path_context) ⇒ V1Client
Returns a new instance of V1Client.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/v1_client.rb', line 19 def initialize(parent, path_context) super(parent: parent, path_context: path_context) end |
Instance Method Details
#merchant(merchant_id) ⇒ Worldline::Connect::SDK::V1::Merchant::MerchantClient
Resource /{merchantId}
27 28 29 30 31 |
# File 'lib/worldline/connect/sdk/v1/v1_client.rb', line 27 def merchant(merchant_id) Worldline::Connect::SDK::V1::Merchant::MerchantClient.new(self, { 'merchantId'.freeze => merchant_id, }) end |