Sha256: 2ebe6b707ece0127b96ff5dd1fac4615c6cf1614a1eea2cb12bbb7d7db73695d
Contents?: true
Size: 912 Bytes
Versions: 3
Compression:
Stored size: 912 Bytes
Contents
module Asaas class Client attr_reader :token def initialize(token = nil, api_version = nil) @token = token || Asaas::Configuration.token @api_version = api_version || Asaas::Configuration.api_version end def accounts @accounts ||= Asaas::Api::Account.new(@token, @api_version) end def cities @cities ||= Asaas::Api::City.new(@token, @api_version) end def customers @customers ||= Asaas::Api::Customer.new(@token, @api_version) end def notifications @notifications ||= Asaas::Api::Notification.new(@token, @api_version) end def payments @payments ||= Asaas::Api::Payment.new(@token, @api_version) end def subscriptions @subscriptions ||= Asaas::Api::Subscription.new(@token, @api_version) end def webhooks @webhooks ||= Asaas::Api::Webhook.new(@token, @api_version) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
asaas-ruby-0.2.12 | lib/asaas/client.rb |
asaas-ruby-0.2.11 | lib/asaas/client.rb |
asaas-ruby-0.2.10 | lib/asaas/client.rb |