Class: Worldline::Acquiring::SDK::Client
- Inherits:
-
ApiResource
- Object
- ApiResource
- Worldline::Acquiring::SDK::Client
- Defined in:
- lib/worldline/acquiring/sdk/client.rb
Overview
Worldline Acquiring platform client.
Thread safe.
Instance Attribute Summary
Attributes inherited from ApiResource
Instance Method Summary collapse
-
#close ⇒ Object
Releases any system resources associated with this object.
-
#close_expired_connections ⇒ Object
Utility method that delegates the call to this client’s communicator.
-
#close_idle_connections(idle_time) ⇒ Object
Utility method that delegates the call to this client’s communicator.
-
#disable_logging ⇒ Object
Turns off logging.
-
#enable_logging(communicator_logger) ⇒ Object
Turns on logging using the given communicator logger.
-
#initialize(communicator) ⇒ Client
constructor
A new instance of Client.
-
#set_body_obfuscator(body_obfuscator) ⇒ Object
Sets the current body obfuscator to use.
-
#set_header_obfuscator(header_obfuscator) ⇒ Object
Sets the current header obfuscator to use.
- #v1 ⇒ Worldline::Acquiring::SDK::V1::V1Client
Constructor Details
#initialize(communicator) ⇒ Client
Returns a new instance of Client.
20 21 22 |
# File 'lib/worldline/acquiring/sdk/client.rb', line 20 def initialize(communicator) super(communicator: communicator) end |
Instance Method Details
#close ⇒ Object
Releases any system resources associated with this object.
58 59 60 |
# File 'lib/worldline/acquiring/sdk/client.rb', line 58 def close @communicator.close end |
#close_expired_connections ⇒ Object
Utility method that delegates the call to this client’s communicator.
30 31 32 |
# File 'lib/worldline/acquiring/sdk/client.rb', line 30 def close_expired_connections @communicator.close_expired_connections end |
#close_idle_connections(idle_time) ⇒ Object
Utility method that delegates the call to this client’s communicator.
25 26 27 |
# File 'lib/worldline/acquiring/sdk/client.rb', line 25 def close_idle_connections(idle_time) @communicator.close_idle_connections(idle_time) end |
#disable_logging ⇒ Object
Turns off logging.
53 54 55 |
# File 'lib/worldline/acquiring/sdk/client.rb', line 53 def disable_logging @communicator.disable_logging end |
#enable_logging(communicator_logger) ⇒ Object
Turns on logging using the given communicator logger.
48 49 50 |
# File 'lib/worldline/acquiring/sdk/client.rb', line 48 def enable_logging(communicator_logger) @communicator.enable_logging(communicator_logger) end |
#set_body_obfuscator(body_obfuscator) ⇒ Object
Sets the current body obfuscator to use.
36 37 38 |
# File 'lib/worldline/acquiring/sdk/client.rb', line 36 def set_body_obfuscator(body_obfuscator) @communicator.set_body_obfuscator(body_obfuscator) end |
#set_header_obfuscator(header_obfuscator) ⇒ Object
Sets the current header obfuscator to use.
42 43 44 |
# File 'lib/worldline/acquiring/sdk/client.rb', line 42 def set_header_obfuscator(header_obfuscator) @communicator.set_header_obfuscator(header_obfuscator) end |