Module: Charging
- Defined in:
- lib/charging.rb,
lib/charging/base.rb,
lib/charging/http.rb,
lib/charging/domain.rb,
lib/charging/helpers.rb,
lib/charging/invoice.rb,
lib/charging/version.rb,
lib/charging/collection.rb,
lib/charging/configuration.rb,
lib/charging/charge_account.rb,
lib/charging/service_account.rb
Defined Under Namespace
Modules: Helpers, Http
Classes: Base, ChargeAccount, Collection, Configuration, Domain, Invoice, ServiceAccount
Constant Summary
collapse
- VERSION =
"0.0.2"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
22
23
24
|
# File 'lib/charging.rb', line 22
def self.configuration
@configuration ||= Configuration.new
end
|
26
27
28
|
# File 'lib/charging.rb', line 26
def self.configure
yield(configuration) if block_given?
end
|
.use_sandbox!(application_token = 'AwdhihciTgORGUjnkuk1vg==') ⇒ Object
30
31
32
33
34
35
|
# File 'lib/charging.rb', line 30
def self.use_sandbox!(application_token = 'AwdhihciTgORGUjnkuk1vg==')
Charging.configure do |config|
config.url = 'https://sandbox.charging.financeconnect.com.br'
config.application_token = application_token
end
end
|