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