Class: QuizApiClient::Services::BankEntriesService
- Inherits:
-
BaseApiService
- Object
- BaseApiService
- QuizApiClient::Services::BankEntriesService
- Defined in:
- lib/quiz_api_client/services/bank_entries_service.rb
Instance Attribute Summary
Attributes inherited from BaseApiService
Instance Method Summary collapse
Methods inherited from BaseApiService
Constructor Details
This class inherits a constructor from QuizApiClient::Services::BaseApiService
Instance Method Details
#list(params:, token: nil, all: false) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/quiz_api_client/services/bank_entries_service.rb', line 3 def list(params:, token: nil, all: false) raise 'Bank Id Required' unless params && params[:id] pagination_params = { page: params.delete(:page), per_page: params.delete(:per_page) }.compact get_from_quiz_api(params: params, token: token, pagination_params: pagination_params, all: all) end |