Module: FidorApi::Client::DSL::Accounts

Defined in:
lib/fidor_api/client/dsl/accounts.rb

Instance Method Summary collapse

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 (, transaction_id, options = {})
  fetch(:single, Model::Transaction, "accounts/#{}/transactions/#{transaction_id}", options)
end

#account_transactions(id, options = {}) ⇒ Object



5
6
7
# File 'lib/fidor_api/client/dsl/accounts.rb', line 5

def (id, options = {})
  fetch(:collection, Model::Transaction, "accounts/#{id}/transactions", options)
end