Module: Asaas::Configuration
- Defined in:
- lib/asaas/configuration.rb
Class Method Summary collapse
Class Method Details
.get_endpoint ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/asaas/configuration.rb', line 29 def get_endpoint if production production_endpoint else staging_endpoint end end |
.get_environment ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/asaas/configuration.rb', line 37 def get_environment if production :production else :staging end end |
.setup {|_self| ... } ⇒ Object
24 25 26 27 |
# File 'lib/asaas/configuration.rb', line 24 def setup(&block) yield self if block_given? self end |