Module: FidorApi::Client::DSL::Accounts
- Defined in:
- lib/fidor_api/client/dsl/accounts.rb
Instance Method Summary collapse
- #account_transaction(account_id, transaction_id, options = {}) ⇒ Object
- #account_transactions(id, options = {}) ⇒ Object
Instance Method Details
#account_transaction(account_id, transaction_id, options = {}) ⇒ Object
9 10 11 |
# File 'lib/fidor_api/client/dsl/accounts.rb', line 9 def account_transaction(account_id, transaction_id, = {}) fetch(:single, Model::Transaction, "accounts/#{account_id}/transactions/#{transaction_id}", ) end |
#account_transactions(id, options = {}) ⇒ Object
5 6 7 |
# File 'lib/fidor_api/client/dsl/accounts.rb', line 5 def account_transactions(id, = {}) fetch(:collection, Model::Transaction, "accounts/#{id}/transactions", ) end |