class FoodCritic::Review

def failures

Returns an array of warnings that are marked as failed.
def failures
  warnings.select(&:failed?)
end