Class: DlocalGo::Client
- Inherits:
-
Object
- Object
- DlocalGo::Client
- Includes:
- EndpointGenerator
- Defined in:
- lib/dlocal_go/client.rb
Overview
Client for Dlocal Go API
Constant Summary
Constants included from Constants
DlocalGo::Constants::CURRENCY_FOR_COUNTRY, DlocalGo::Constants::DEFAULT_SUPPORTED_COUNTRIES, DlocalGo::Constants::PRODUCTION_URL, DlocalGo::Constants::SANDBOX_URL, DlocalGo::Constants::SUBSCRIPTION_BASE_PRODUCTION_URL, DlocalGo::Constants::SUBSCRIPTION_BASE_SANDBOX_URL
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
Methods included from EndpointGenerator
Methods included from Constants
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
16 17 18 19 |
# File 'lib/dlocal_go/client.rb', line 16 def initialize raise DlocalGo::Error, "Dlocal Go api key is not set" if api_key.nil? raise DlocalGo::Error, "Dlocal Go api secret is not set" if api_secret.nil? end |