Module: Luno::Accounts
- Included in:
- Client
- Defined in:
- lib/luno/accounts.rb
Instance Method Summary collapse
-
#list_account_transactions(account_id, min_row: -1000,, max_row: 0) ⇒ Object
Path params: min_row=1&max_row=1000.
- #list_accounts ⇒ Object
- #list_pending_account_transactions(account_id) ⇒ Object
Instance Method Details
#list_account_transactions(account_id, min_row: -1000,, max_row: 0) ⇒ Object
Path params: min_row=1&max_row=1000
14 15 16 17 18 |
# File 'lib/luno/accounts.rb', line 14 def list_account_transactions(account_id, min_row: -1000, max_row: 0) path = "accounts/#{account_id}/transactions" path_params = { min_row: min_row, max_row: max_row } (http_method: :get, path: path, params: path_params) end |
#list_accounts ⇒ Object
3 4 5 6 |
# File 'lib/luno/accounts.rb', line 3 def list_accounts path = 'accounts' (http_method: :get, path: path) end |
#list_pending_account_transactions(account_id) ⇒ Object
8 9 10 11 |
# File 'lib/luno/accounts.rb', line 8 def list_pending_account_transactions(account_id) path = "accounts/#{account_id}/pending" (http_method: :get, path: path) end |