Class: Asaas::Client
- Inherits:
-
Object
- Object
- Asaas::Client
- Defined in:
- lib/asaas/client.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
- #accounts ⇒ Object
- #cities ⇒ Object
- #customers ⇒ Object
-
#initialize(token) ⇒ Client
constructor
A new instance of Client.
- #notifications ⇒ Object
- #payments ⇒ Object
- #subscriptions ⇒ Object
Constructor Details
#initialize(token) ⇒ Client
Returns a new instance of Client.
6 7 8 |
# File 'lib/asaas/client.rb', line 6 def initialize(token) @token = token end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
4 5 6 |
# File 'lib/asaas/client.rb', line 4 def token @token end |
Instance Method Details
#accounts ⇒ Object
10 11 12 |
# File 'lib/asaas/client.rb', line 10 def accounts @accounts ||= Asaas::Api::Account.new(@token) end |
#cities ⇒ Object
14 15 16 |
# File 'lib/asaas/client.rb', line 14 def cities @cities ||= Asaas::Api::City.new(@token) end |
#customers ⇒ Object
18 19 20 |
# File 'lib/asaas/client.rb', line 18 def customers @customers ||= Asaas::Api::Customer.new(@token) end |
#notifications ⇒ Object
22 23 24 |
# File 'lib/asaas/client.rb', line 22 def notifications @notifications ||= Asaas::Api::Notification.new(@token) end |
#payments ⇒ Object
26 27 28 |
# File 'lib/asaas/client.rb', line 26 def payments @payments ||= Asaas::Api::Payment.new(@token) end |
#subscriptions ⇒ Object
30 31 32 |
# File 'lib/asaas/client.rb', line 30 def subscriptions @subscriptions ||= Asaas::Api::Subscription.new(@token) end |