Class: Course::Assessment::Answer::MultipleResponseAutoGradingService

Inherits:
AutoGradingService
  • Object
show all
Defined in:
app/services/course/assessment/answer/multiple_response_auto_grading_service.rb

Instance Method Summary collapse

Instance Method Details

#evaluate(answer) ⇒ Object


4
5
6
7
8
# File 'app/services/course/assessment/answer/multiple_response_auto_grading_service.rb', line 4

def evaluate(answer)
  answer.correct, grade, messages = evaluate_answer(answer.actable)
  answer.auto_grading.result = { messages: messages }
  grade
end