Sha256: 29ad56a6bbda475d45a610447fe670274439463de092bdfd49e03c4926514a56
Contents?: true
Size: 666 Bytes
Versions: 29
Compression:
Stored size: 666 Bytes
Contents
module QuizApiClient::Services class QuizSessionService < BaseApiService def update(params:, token: nil) patch_to_quiz_api(params: params, token: token) end def show(params:, token: nil) raise 'Quiz Session Id Required' unless params && params[:id] get_from_quiz_api(params: params, token: token) end private def patch_to_quiz_api(params:, token:) client(token: token).patch( "/api/quiz_sessions/#{params[:id]}", quiz_session: params ) end def get_from_quiz_api(params:, token:) client(token: token).get( "/api/quiz_sessions/#{params[:id]}" ) end end end
Version data entries
29 entries across 29 versions & 1 rubygems