Module: Revolut::Clients::Accounts
- Included in:
- Revolut::Client
- Defined in:
- lib/revolut/clients/accounts.rb
Overview
Revolut Accounts
Instance Method Summary collapse
-
#account(id) ⇒ Hash
Get account information.
-
#account_details(id) ⇒ Hash
Get account bank details.
-
#accounts ⇒ Hash
Get accounts list.
Instance Method Details
#account(id) ⇒ Hash
Get account information.
23 24 25 |
# File 'lib/revolut/clients/accounts.rb', line 23 def account(id) connection.get("accounts/#{id}") end |
#account_details(id) ⇒ Hash
Get account bank details.
34 35 36 |
# File 'lib/revolut/clients/accounts.rb', line 34 def account_details(id) connection.get("accounts/#{id}/bank-details") end |
#accounts ⇒ Hash
Get accounts list.
12 13 14 |
# File 'lib/revolut/clients/accounts.rb', line 12 def accounts connection.get('accounts') end |