module QuizApiClient::Services class SessionItemsService < BaseApiService def list(params:, token: nil, all: false) raise 'QuizSession Id Required' unless params && params[:quiz_session_id] get_from_quiz_api(params: params, token: token, all: all) end private def get_from_quiz_api(params:, token:, all:) client(token: token).get( "/api/quiz_sessions/#{params[:quiz_session_id]}/session_items", all: all ) end end end