Class: Rlocu::MenuItem
- Inherits:
-
Object
- Object
- Rlocu::MenuItem
- Defined in:
- lib/rlocu/menu.rb
Overview
create a to_s for each that can be over-ridden by the user
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#option_groups ⇒ Object
Returns the value of attribute option_groups.
-
#price ⇒ Object
Returns the value of attribute price.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(meta_menu_item) ⇒ MenuItem
constructor
A new instance of MenuItem.
Constructor Details
#initialize(meta_menu_item) ⇒ MenuItem
Returns a new instance of MenuItem.
77 78 79 80 81 82 83 |
# File 'lib/rlocu/menu.rb', line 77 def initialize() @type = ['type'] @name = ['name'] @description = ['description'] @price = ['price'] self.option_groups = ['option_groups'] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
74 75 76 |
# File 'lib/rlocu/menu.rb', line 74 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
74 75 76 |
# File 'lib/rlocu/menu.rb', line 74 def name @name end |
#option_groups ⇒ Object
Returns the value of attribute option_groups.
75 76 77 |
# File 'lib/rlocu/menu.rb', line 75 def option_groups @option_groups end |
#price ⇒ Object
Returns the value of attribute price.
74 75 76 |
# File 'lib/rlocu/menu.rb', line 74 def price @price end |
#type ⇒ Object
Returns the value of attribute type.
74 75 76 |
# File 'lib/rlocu/menu.rb', line 74 def type @type end |