Sha256: a55c8f3e53a091cf1fc14e0678ac9343ed8c947b271e8d5cbf22c4a3cb241e5d

Contents?: true

Size: 648 Bytes

Versions: 10

Compression:

Stored size: 648 Bytes

Contents

module Asaas
  class Client

    attr_reader :token

    def initialize(token = nil)
      @token = token || Asaas::Configuration.token
    end

    def accounts
      @accounts ||= Asaas::Api::Account.new(@token)
    end

    def cities
      @cities ||= Asaas::Api::City.new(@token)
    end

    def customers
      @customers ||= Asaas::Api::Customer.new(@token)
    end

    def notifications
      @notifications ||= Asaas::Api::Notification.new(@token)
    end

    def payments
      @payments ||= Asaas::Api::Payment.new(@token)
    end

    def subscriptions
      @subscriptions ||= Asaas::Api::Subscription.new(@token)
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
asaas-ruby-0.1.11 lib/asaas/client.rb
asaas-ruby-0.1.10 lib/asaas/client.rb
asaas-ruby-0.1.9 lib/asaas/client.rb
asaas-ruby-0.1.8 lib/asaas/client.rb
asaas-ruby-0.1.7 lib/asaas/client.rb
asaas-ruby-0.1.6 lib/asaas/client.rb
asaas-ruby-0.1.5 lib/asaas/client.rb
asaas-ruby-0.1.4 lib/asaas/client.rb
asaas-ruby-0.1.3 lib/asaas/client.rb
asaas-ruby-0.1.2 lib/asaas/client.rb