Class: LMSGraphQL::Mutations::Canvas::CourseQuizExtensionsSetExtensionsForStudentQuizSubmission

Inherits:
BaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/course_quiz_extensions_set_extensions_for_student_quiz_submissions.rb

Instance Method Summary collapse

Instance Method Details

#resolve(course_id:, user_id:, extra_attempts: nil, extra_time: nil, manually_unlocked: nil, extend_from_now: nil, extend_from_end_at: nil) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/lms_graphql/mutations/canvas/course_quiz_extensions_set_extensions_for_student_quiz_submissions.rb', line 18

def resolve(course_id:, user_id:, extra_attempts: nil, extra_time: nil, manually_unlocked: nil, extend_from_now: nil, extend_from_end_at: nil)
  context[:canvas_api].call("COURSE_QUIZ_EXTENSIONS_SET_EXTENSIONS_FOR_STUDENT_QUIZ_SUBMISSIONS").proxy(
    "COURSE_QUIZ_EXTENSIONS_SET_EXTENSIONS_FOR_STUDENT_QUIZ_SUBMISSIONS",
    {
      "course_id": course_id
    },
    {
      "user_id": user_id,
      "extra_attempts": extra_attempts,
      "extra_time": extra_time,
      "manually_unlocked": manually_unlocked,
      "extend_from_now": extend_from_now,
      "extend_from_end_at": extend_from_end_at
    },
  ).parsed_response
end