class LMSGraphQL::Mutations::Canvas::CreateScore
Public Instance Methods
resolve(course_id:, line_item_id:, userId:, activityProgress:, gradingProgress:, timestamp:, scoreGiven: nil, scoreMaximum: nil, comment: nil, submission: nil)
click to toggle source
# File lib/lms_graphql/mutations/canvas/create_score.rb, line 21 def resolve(course_id:, line_item_id:, userId:, activityProgress:, gradingProgress:, timestamp:, scoreGiven: nil, scoreMaximum: nil, comment: nil, submission: nil) context[:canvas_api].call("CREATE_SCORE").proxy( "CREATE_SCORE", { "course_id": course_id, "line_item_id": line_item_id }, { "userId": userId, "activityProgress": activityProgress, "gradingProgress": gradingProgress, "timestamp": timestamp, "scoreGiven": scoreGiven, "scoreMaximum": scoreMaximum, "comment": comment, "https://canvas.instructure.com/lti/submission": submission }, ).parsed_response end