Class: Course::Assessment::Question::TextResponseComprehensionPoint

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

Instance Method Summary collapse

Instance Method Details

#auto_gradable_point?Boolean

Returns:

  • (Boolean)

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

def auto_gradable_point?
  solutions.any?(&:auto_gradable_solution?)
end

#initialize_duplicate(duplicator, other) ⇒ Object


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

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