Class: Exam::PassingCriterion::Percentage
- Inherits:
-
Exam::PassingCriterion
- Object
- Exam::PassingCriterion
- Exam::PassingCriterion::Percentage
- Defined in:
- app/models/exam/passing_criterion.rb
Instance Attribute Summary
Attributes inherited from Exam::PassingCriterion
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
44 45 46 |
# File 'app/models/exam/passing_criterion.rb', line 44 def valid_passing_grade? value.between? 0, 100 end |