Class: Exam::PassingCriterion::Percentage

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!, #initialize, parse, parse_criterion_type, #type

Constructor Details

This class inherits a constructor from Exam::PassingCriterion

Instance Method Details

#valid_passing_grade?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'app/models/exam/passing_criterion.rb', line 44

def valid_passing_grade?
  value.between? 0, 100
end