Class: Worldline::Acquiring::SDK::V1::V1Client
- Inherits:
-
ApiResource
- Object
- ApiResource
- Worldline::Acquiring::SDK::V1::V1Client
- Defined in:
- lib/worldline/acquiring/sdk/v1/v1_client.rb
Overview
V1 client.
Thread safe.
Instance Attribute Summary
Attributes inherited from ApiResource
Instance Method Summary collapse
-
#acquirer(acquirer_id) ⇒ Worldline::Acquiring::SDK::V1::Acquirer::AcquirerClient
Resource /processing/v1/acquirerId.
-
#initialize(parent, path_context) ⇒ V1Client
constructor
A new instance of V1Client.
-
#ping ⇒ Worldline::Acquiring::SDK::V1::Ping::PingClient
Resource /services/v1/ping.
Constructor Details
#initialize(parent, path_context) ⇒ V1Client
Returns a new instance of V1Client.
19 20 21 |
# File 'lib/worldline/acquiring/sdk/v1/v1_client.rb', line 19 def initialize(parent, path_context) super(parent: parent, path_context: path_context) end |
Instance Method Details
#acquirer(acquirer_id) ⇒ Worldline::Acquiring::SDK::V1::Acquirer::AcquirerClient
Resource /processing/v1/acquirerId
27 28 29 30 31 |
# File 'lib/worldline/acquiring/sdk/v1/v1_client.rb', line 27 def acquirer(acquirer_id) Worldline::Acquiring::SDK::V1::Acquirer::AcquirerClient.new(self, { 'acquirerId'.freeze => acquirer_id, }) end |
#ping ⇒ Worldline::Acquiring::SDK::V1::Ping::PingClient
Resource /services/v1/ping
36 37 38 |
# File 'lib/worldline/acquiring/sdk/v1/v1_client.rb', line 36 def ping Worldline::Acquiring::SDK::V1::Ping::PingClient.new(self, nil) end |