Class: Moip2::Api
- Inherits:
-
Object
- Object
- Moip2::Api
- Defined in:
- lib/moip2/api.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #accounts ⇒ Object
- #balances ⇒ Object
- #bank_accounts ⇒ Object
- #connect ⇒ Object
- #customer ⇒ Object
- #entries ⇒ Object
-
#initialize(client) ⇒ Api
constructor
A new instance of Api.
- #invoice ⇒ Object
- #keys ⇒ Object
- #multi_order ⇒ Object
- #multi_payment ⇒ Object
- #notifications ⇒ Object
- #order ⇒ Object
- #payment ⇒ Object
- #refund ⇒ Object
- #webhooks ⇒ Object
Constructor Details
#initialize(client) ⇒ Api
Returns a new instance of Api.
5 6 7 |
# File 'lib/moip2/api.rb', line 5 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/moip2/api.rb', line 3 def client @client end |
Instance Method Details
#accounts ⇒ Object
49 50 51 |
# File 'lib/moip2/api.rb', line 49 def accounts Moip2::AccountsApi.new(client) end |
#balances ⇒ Object
17 18 19 |
# File 'lib/moip2/api.rb', line 17 def balances Moip2::BalancesApi.new(client) end |
#bank_accounts ⇒ Object
53 54 55 |
# File 'lib/moip2/api.rb', line 53 def bank_accounts Moip2::BankAccountsApi.new(client) end |
#connect ⇒ Object
61 62 63 64 |
# File 'lib/moip2/api.rb', line 61 def connect connect_client = Moip2::ConnectClient.new(client.env, client.auth, client.opts) Moip2::ConnectApi.new(connect_client) end |
#customer ⇒ Object
37 38 39 |
# File 'lib/moip2/api.rb', line 37 def customer Moip2::CustomerApi.new(client) end |
#entries ⇒ Object
21 22 23 |
# File 'lib/moip2/api.rb', line 21 def entries Moip2::EntryApi.new(client) end |
#invoice ⇒ Object
25 26 27 |
# File 'lib/moip2/api.rb', line 25 def invoice Moip2::InvoiceApi.new client end |
#keys ⇒ Object
33 34 35 |
# File 'lib/moip2/api.rb', line 33 def keys Moip2::KeysApi.new(client) end |
#multi_order ⇒ Object
41 42 43 |
# File 'lib/moip2/api.rb', line 41 def multi_order Moip2::MultiOrderApi.new(client) end |
#multi_payment ⇒ Object
45 46 47 |
# File 'lib/moip2/api.rb', line 45 def multi_payment Moip2::MultiPaymentApi.new(client) end |
#notifications ⇒ Object
66 67 68 |
# File 'lib/moip2/api.rb', line 66 def notifications Moip2::NotificationsApi.new(client) end |
#order ⇒ Object
9 10 11 |
# File 'lib/moip2/api.rb', line 9 def order Moip2::OrderApi.new(client) end |
#payment ⇒ Object
13 14 15 |
# File 'lib/moip2/api.rb', line 13 def payment Moip2::PaymentApi.new(client) end |
#refund ⇒ Object
29 30 31 |
# File 'lib/moip2/api.rb', line 29 def refund Moip2::RefundApi.new(client) end |
#webhooks ⇒ Object
57 58 59 |
# File 'lib/moip2/api.rb', line 57 def webhooks Moip2::WebhooksApi.new(client) end |