Class: DlocalGo::Client

Inherits:
Object
  • Object
show all
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

Methods included from EndpointGenerator

included

Methods included from Constants

#currency_for_country

Constructor Details

#initializeClient

Returns a new instance of Client.

Raises:



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