Class: Course::Assessment::Question::TextResponseComprehensionSolution

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/course/assessment/question/text_response_comprehension_solution.rb

Instance Method Summary collapse

Instance Method Details

#auto_gradable_solution?Boolean

Returns:

  • (Boolean)

15
16
17
# File 'app/models/course/assessment/question/text_response_comprehension_solution.rb', line 15

def auto_gradable_solution?
  !solution.empty?
end

#initialize_duplicate(duplicator, other) ⇒ Object


19
20
21
# File 'app/models/course/assessment/question/text_response_comprehension_solution.rb', line 19

def initialize_duplicate(duplicator, other)
  self.point = duplicator.duplicate(other.point)
end