Module: PaystackGateway
- Defined in:
- lib/paystack_gateway.rb,
lib/paystack_gateway/plans.rb,
lib/paystack_gateway/current.rb,
lib/paystack_gateway/refunds.rb,
lib/paystack_gateway/version.rb,
lib/paystack_gateway/response.rb,
lib/paystack_gateway/webhooks.rb,
lib/paystack_gateway/api_error.rb,
lib/paystack_gateway/customers.rb,
lib/paystack_gateway/transfers.rb,
lib/paystack_gateway/subaccounts.rb,
lib/paystack_gateway/transactions.rb,
lib/paystack_gateway/verification.rb,
lib/paystack_gateway/configuration.rb,
lib/paystack_gateway/miscellaneous.rb,
lib/paystack_gateway/request_module.rb,
lib/paystack_gateway/transfer_recipients.rb,
lib/paystack_gateway/transaction_response.rb,
lib/paystack_gateway/dedicated_virtual_accounts.rb
Overview
Defined Under Namespace
Modules: Customers, DedicatedVirtualAccounts, Miscellaneous, Plans, Refunds, RequestModule, Subaccounts, TransactionResponse, Transactions, TransferRecipients, Transfers, Verification, Webhooks
Classes: ApiError, Configuration, Current, Response
Constant Summary
collapse
- VERSION =
'0.1.1'
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.config ⇒ Object
30
|
# File 'lib/paystack_gateway.rb', line 30
def config = @config ||= Configuration.new
|
Class Method Details
.api_modules ⇒ Object
33
34
35
36
37
38
39
|
# File 'lib/paystack_gateway.rb', line 33
def api_modules
constants.filter_map do |const_name|
const = const_get(const_name)
const if const.is_a?(Module) && const.included_modules.include?(RequestModule)
end
end
|
31
|
# File 'lib/paystack_gateway.rb', line 31
def configure = yield(config)
|