Class: Course::Assessment::Answer::TextResponseComprehensionAutoGradingService

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

Instance Method Summary collapse

Instance Method Details

#evaluate(answer) ⇒ Object


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

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