Class: PapierkramApi::V1::Endpoints::Banking::BankConnections
- Inherits:
-
PapierkramApi::V1::Endpoints::Base
- Object
- PapierkramApi::V1::Endpoints::Base
- PapierkramApi::V1::Endpoints::Banking::BankConnections
- Defined in:
- lib/papierkram_api/v1/endpoints/banking/bank_connections.rb
Overview
This class is responsible for all the API calls related to banking bank connections.
Instance Attribute Summary
Attributes inherited from PapierkramApi::V1::Endpoints::Base
Instance Method Summary collapse
Methods inherited from PapierkramApi::V1::Endpoints::Base
#http_delete, #http_get, #http_patch, #http_post, #http_put, #initialize, #remaining_quota
Constructor Details
This class inherits a constructor from PapierkramApi::V1::Endpoints::Base
Instance Method Details
#all(page: 1, page_size: 100, order_by: nil, order_direction: nil) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/papierkram_api/v1/endpoints/banking/bank_connections.rb', line 15 def all(page: 1, page_size: 100, order_by: nil, order_direction: nil) query = { page: page, page_size: page_size } query[:order_by] = order_by if order_by query[:order_direction] = order_direction if order_direction http_get("#{@url_api_path}/banking/bank_connections", query) end |
#find_by(id:) ⇒ Object
11 12 13 |
# File 'lib/papierkram_api/v1/endpoints/banking/bank_connections.rb', line 11 def find_by(id:) http_get("#{@url_api_path}/banking/bank_connections/#{id}") end |