Class: Modulr::API::TransactionsService
- Defined in:
- lib/modulr/api/transactions_service.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
Methods inherited from Service
Constructor Details
This class inherits a constructor from Modulr::API::Service
Instance Method Details
#list(account_id:, **opts) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/modulr/api/transactions_service.rb', line 6 def list(account_id:, **opts) response = client.get("/accounts/#{account_id}/transactions", build_query_params(opts)) attributes_collection = response.body[:content] Resources::Transactions::Transactions.new(response, attributes_collection) end |