Sha256: 96704210860367422d7fc6358fbd4ce508cbeb3c62a521027b39a6de84103aed
Contents?: true
Size: 390 Bytes
Versions: 2
Compression:
Stored size: 390 Bytes
Contents
module QuizApiClient::Services class QuizEntriesService < BaseApiService def list(params:, token: nil) raise 'Quiz Id Required' unless params && params[:id] get_from_quiz_api(params: params, token: token) end private def get_from_quiz_api(params:, token:) client(token: token).get( "/api/quizzes/#{params[:id]}/quiz_entries") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quiz_api_client-1.0.0 | lib/quiz_api_client/services/quiz_entries_service.rb |
quiz_api_client-0.2.1 | lib/quiz_api_client/services/quiz_entries_service.rb |