Class: QuizApiClient::Services::QuizzesService
- Inherits:
-
BaseApiService
- Object
- BaseApiService
- QuizApiClient::Services::QuizzesService
- Defined in:
- lib/quiz_api_client/services/quizzes_service.rb
Instance Attribute Summary
Attributes inherited from BaseApiService
#consumer_key, #errors, #host, #protocol, #shared_secret
Instance Method Summary collapse
Methods inherited from BaseApiService
Constructor Details
This class inherits a constructor from QuizApiClient::Services::BaseApiService
Instance Method Details
#create(params:, token: nil) ⇒ Object
3 4 5 |
# File 'lib/quiz_api_client/services/quizzes_service.rb', line 3 def create(params:, token: nil) post_to_quiz_api(params: params, token: token) end |
#list(params:, token: nil, all: false) ⇒ Object
7 8 9 |
# File 'lib/quiz_api_client/services/quizzes_service.rb', line 7 def list(params:, token: nil, all: false) get_from_quiz_api(params: params, token: token, all: all) end |