Class: Exam::PassingCriterion::None

Inherits:
Exam::PassingCriterion show all
Defined in:
app/models/exam/passing_criterion.rb

Instance Attribute Summary

Attributes inherited from Exam::PassingCriterion

#value

Instance Method Summary collapse

Methods inherited from Exam::PassingCriterion

#as_json, #ensure_valid!, parse, parse_criterion_type, #type

Constructor Details

#initialize(_) ⇒ None

Returns a new instance of None.



34
35
36
# File 'app/models/exam/passing_criterion.rb', line 34

def initialize(_)
  @value = nil
end

Instance Method Details

#valid_passing_grade?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'app/models/exam/passing_criterion.rb', line 38

def valid_passing_grade?
  !value
end