Module: DlocalGo

Defined in:
lib/dlocal_go.rb,
lib/dlocal_go/client.rb,
lib/dlocal_go/errors.rb,
lib/dlocal_go/version.rb,
lib/dlocal_go/constants.rb,
lib/dlocal_go/utilities.rb,
lib/dlocal_go/responses/base.rb,
lib/dlocal_go/responses/array.rb,
lib/dlocal_go/responses/refund.rb,
lib/dlocal_go/responses/payment.rb,
lib/dlocal_go/endpoint_generator.rb,
lib/dlocal_go/responses/subscription.rb,
lib/dlocal_go/responses/response_parser.rb,
lib/dlocal_go/responses/recurring_payment.rb,
lib/dlocal_go/responses/subscription_plan.rb,
lib/dlocal_go/responses/subscription_execution.rb

Overview

Main module for Dlocal Go, it provides a way to configure the gem and imports the client

Defined Under Namespace

Modules: Constants, EndpointGenerator, Responses Classes: Client, Error, Utilities

Constant Summary collapse

VERSION =
"1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



24
25
26
# File 'lib/dlocal_go.rb', line 24

def api_key
  @api_key
end

.api_secretObject

Returns the value of attribute api_secret.



24
25
26
# File 'lib/dlocal_go.rb', line 24

def api_secret
  @api_secret
end

.environmentObject

Returns the value of attribute environment.



24
25
26
# File 'lib/dlocal_go.rb', line 24

def environment
  @environment
end

.supported_countriesObject

Returns the value of attribute supported_countries.



24
25
26
# File 'lib/dlocal_go.rb', line 24

def supported_countries
  @supported_countries
end

Class Method Details

.clear_setupObject



16
17
18
19
20
21
# File 'lib/dlocal_go.rb', line 16

def self.clear_setup
  self.api_key = nil
  self.api_secret = nil
  self.environment = nil
  self.supported_countries = nil
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (DlocalGo)

    the object that the method was called on



12
13
14
# File 'lib/dlocal_go.rb', line 12

def self.setup
  yield self
end