require 'quiz_api_client/services/base_api_service' module QuizApiClient::Services class QuizService < BaseApiService def token(scope:, exp: nil, resource_id: nil) return unless scope == scope_build generate_token(scope: scope, exp: exp, resource_id: resource_id) end # Allowed scopes def scope_build 'quiz.build' end end end