Module: Zspay
- Defined in:
- lib/zspay.rb,
lib/zspay/version.rb,
lib/zspay/resource.rb,
lib/zspay/configuration.rb,
lib/zspay/resources/sale.rb,
lib/zspay/resources/client.rb,
lib/zspay/resources/transfer.rb,
lib/zspay/resources/bank_account.rb,
lib/zspay/resources/establishment.rb
Overview
The Zspay module is the main namespace for the Zspay gem. It provides methods to configure and access the gem’s settings.
Examples:
Zspay.configure do |config|
config.token = 'your_api_token'
end
Defined Under Namespace
Classes: BankAccount, Client, Configuration, Establishment, Resource, Sale, Transfer
Constant Summary collapse
- VERSION =
"1.0.1"
Class Method Summary collapse
-
.configuration ⇒ Zspay::Configuration
Returns the configuration object for Zspay.
-
.configure {|config| ... } ⇒ Object
Yields the current Zspay configuration to a block.
Class Method Details
.configuration ⇒ Zspay::Configuration
Returns the configuration object for Zspay. If the configuration has not yet been initialized, it will create a new instance of Configuration.
28 29 30 |
# File 'lib/zspay.rb', line 28 def configuration @configuration ||= Configuration.new end |
.configure {|config| ... } ⇒ Object
Yields the current Zspay configuration to a block. This method is typically used to set up the gem’s settings.
40 41 42 |
# File 'lib/zspay.rb', line 40 def configure yield(configuration) end |