Module: FidorApi::Client::DSL::Transactions

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

Instance Method Summary collapse

Instance Method Details

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



9
10
11
# File 'lib/fidor_api/client/dsl/transactions.rb', line 9

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

#transactions(options = {}) ⇒ Object



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

def transactions(options = {})
  fetch(:collection, Model::Transaction, 'transactions', options)
end