Sha256: 7995c1df7a313dae3b98349c9c0c70ebb4e047b0b653b1d760729738622be674

Contents?: true

Size: 354 Bytes

Versions: 13

Compression:

Stored size: 354 Bytes

Contents

module QuizApiClient::Services
  class QuizCloneJobsService < BaseApiService
    def create(params:, token: nil)
      post_to_quiz_api(params: params, token: token)
    end

    private

    def post_to_quiz_api(params:, token:)
      client(token: token).post(
        "/api/quizzes/#{params.fetch(:quiz_id)}/quiz_clone_jobs"
      )
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
quiz_api_client-4.2.1 lib/quiz_api_client/services/quiz_clone_jobs_service.rb
quiz_api_client-4.2.0 lib/quiz_api_client/services/quiz_clone_jobs_service.rb
quiz_api_client-4.1.0 lib/quiz_api_client/services/quiz_clone_jobs_service.rb
quiz_api_client-4.0.0 lib/quiz_api_client/services/quiz_clone_jobs_service.rb
quiz_api_client-3.2.0 lib/quiz_api_client/services/quiz_clone_jobs_service.rb
quiz_api_client-3.1.0 lib/quiz_api_client/services/quiz_clone_jobs_service.rb
quiz_api_client-3.0.0 lib/quiz_api_client/services/quiz_clone_jobs_service.rb
quiz_api_client-2.9.0 lib/quiz_api_client/services/quiz_clone_jobs_service.rb
quiz_api_client-2.8.0 lib/quiz_api_client/services/quiz_clone_jobs_service.rb
quiz_api_client-2.7.0 lib/quiz_api_client/services/quiz_clone_jobs_service.rb
quiz_api_client-2.5.2 lib/quiz_api_client/services/quiz_clone_jobs_service.rb
quiz_api_client-2.5.1 lib/quiz_api_client/services/quiz_clone_jobs_service.rb
quiz_api_client-2.5.0 lib/quiz_api_client/services/quiz_clone_jobs_service.rb