Class: Menuella::FoodSafety::Allergen

Inherits:
Data
  • Object
show all
Defined in:
lib/menuella/food_safety.rb

Overview

One allergen, resolved for a locale.

key is what a product row stores. group is its LMIV group; CEREALS and TREE_NUTS are groups but never keys, because the law requires naming the specific grain or nut. declaration is the sentence with legal force — the one that must reach the guest.

Instance Attribute Summary collapse

Instance Attribute Details

#declarationObject (readonly)

Returns the value of attribute declaration

Returns:

  • (Object)

    the current value of declaration



58
59
60
# File 'lib/menuella/food_safety.rb', line 58

def declaration
  @declaration
end

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



58
59
60
# File 'lib/menuella/food_safety.rb', line 58

def description
  @description
end

#groupObject (readonly)

Returns the value of attribute group

Returns:

  • (Object)

    the current value of group



58
59
60
# File 'lib/menuella/food_safety.rb', line 58

def group
  @group
end

#iconObject (readonly)

Returns the value of attribute icon

Returns:

  • (Object)

    the current value of icon



58
59
60
# File 'lib/menuella/food_safety.rb', line 58

def icon
  @icon
end

#is_memberObject (readonly) Also known as: member?

Returns the value of attribute is_member

Returns:

  • (Object)

    the current value of is_member



58
59
60
# File 'lib/menuella/food_safety.rb', line 58

def is_member
  @is_member
end

#keyObject (readonly)

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



58
59
60
# File 'lib/menuella/food_safety.rb', line 58

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



58
59
60
# File 'lib/menuella/food_safety.rb', line 58

def name
  @name
end