module Nutriscore::UK::DrinksLessHealthy
Public Instance Methods
less_healthy?()
click to toggle source
# File lib/nutriscore/uk/concerns/drinks_less_healthy.rb, line 4 def less_healthy? # 'A drink is classified as 'less healthy' where it scores 1 point or more.' if score.min >= 1 true elsif score.max < 1 false else nil end end