Module: Asaas::Configuration

Defined in:
lib/asaas/configuration.rb

Class Method Summary collapse

Class Method Details

.get_endpointObject



25
26
27
28
29
30
31
# File 'lib/asaas/configuration.rb', line 25

def get_endpoint
  if production
    production_endpoint
  else
    staging_endpoint
  end
end

.get_environmentObject



33
34
35
36
37
38
39
# File 'lib/asaas/configuration.rb', line 33

def get_environment
  if production
    :production
  else
    :staging
  end
end

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

Yields:

  • (_self)

Yield Parameters:



20
21
22
23
# File 'lib/asaas/configuration.rb', line 20

def setup(&block)
  yield self if block_given?
  self
end