Class: Course::Assessment::Answer::ProgrammingAutoGradingService

Inherits:
AutoGradingService show all
Defined in:
app/services/course/assessment/answer/programming_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/programming_auto_grading_service.rb', line 4

def evaluate(answer)
  answer.correct, grade, programming_auto_grading, = evaluate_answer(answer.actable)
  programming_auto_grading.auto_grading = answer.auto_grading
  grade
end