Module: Nutriscore::UK::GeneralLessHealthy
- Included in:
- GeneralScore
- Defined in:
- lib/nutriscore/uk/concerns/general_less_healthy.rb
Instance Method Summary collapse
Instance Method Details
#less_healthy? ⇒ Boolean
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/nutriscore/uk/concerns/general_less_healthy.rb', line 4 def less_healthy? # 'A food is classified as 'less healthy' where it scores 4 points or more.' if score.min >= 4 true elsif score.max < 4 false else nil end end |