Sha256: a802c48d749b3fc52f8ccdd5ac6495c7a89097cb0733b81e239cacd0162fa696
Contents?: true
Size: 655 Bytes
Versions: 16
Compression:
Stored size: 655 Bytes
Contents
module QuizApiClient::Services class QuizCloneJobsService < BaseApiService def create(body: {}, params:, token: nil) post_to_quiz_api(body: body, params: params, token: token) end def create_batch(body:, token: nil) batch_post_to_quiz_api(body: body, token: token) end private def post_to_quiz_api(body:, params:, token:) client(token: token).post( "/api/quizzes/#{params.fetch(:quiz_id)}/quiz_clone_jobs", body ) end def batch_post_to_quiz_api(body:, token:) client(token: token).post( '/api/quiz_clone_jobs/create_batch', body ) end end end
Version data entries
16 entries across 16 versions & 1 rubygems