Class: Rlocu::Menu::MenuItem
Instance Attribute Summary collapse
-
#currency_symbol ⇒ Object
readonly
Returns the value of attribute currency_symbol.
-
#menu_name ⇒ Object
readonly
Returns the value of attribute menu_name.
-
#photos ⇒ Object
readonly
Returns the value of attribute photos.
-
#section_name ⇒ Object
readonly
Returns the value of attribute section_name.
-
#section_text ⇒ Object
readonly
Returns the value of attribute section_text.
-
#subsection_name ⇒ Object
readonly
Returns the value of attribute subsection_name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Item
#description, #name, #option_groups, #price
Instance Method Summary collapse
-
#initialize(menu_item_hash) ⇒ MenuItem
constructor
A new instance of MenuItem.
Constructor Details
#initialize(menu_item_hash) ⇒ MenuItem
Returns a new instance of MenuItem.
106 107 108 109 110 111 112 113 114 |
# File 'lib/rlocu/menu.rb', line 106 def initialize() @menu_name = ['menu_name'] @section_name = ['section_name'] @subsection_name = ['subsection_name'] @section_text = ['section_text'] @currency_symbol = ['currency_symbol'] @photos = ['photos'] super end |
Instance Attribute Details
#currency_symbol ⇒ Object (readonly)
Returns the value of attribute currency_symbol.
105 106 107 |
# File 'lib/rlocu/menu.rb', line 105 def currency_symbol @currency_symbol end |
#menu_name ⇒ Object (readonly)
Returns the value of attribute menu_name.
105 106 107 |
# File 'lib/rlocu/menu.rb', line 105 def @menu_name end |
#photos ⇒ Object (readonly)
Returns the value of attribute photos.
105 106 107 |
# File 'lib/rlocu/menu.rb', line 105 def photos @photos end |
#section_name ⇒ Object (readonly)
Returns the value of attribute section_name.
105 106 107 |
# File 'lib/rlocu/menu.rb', line 105 def section_name @section_name end |
#section_text ⇒ Object (readonly)
Returns the value of attribute section_text.
105 106 107 |
# File 'lib/rlocu/menu.rb', line 105 def section_text @section_text end |
#subsection_name ⇒ Object (readonly)
Returns the value of attribute subsection_name.
105 106 107 |
# File 'lib/rlocu/menu.rb', line 105 def subsection_name @subsection_name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
105 106 107 |
# File 'lib/rlocu/menu.rb', line 105 def type @type end |