Class: Rlocu::Menu::MenuItem

Inherits:
Item
  • Object
show all
Defined in:
lib/rlocu/menu.rb

Instance Attribute Summary collapse

Attributes inherited from Item

#description, #name, #option_groups, #price

Instance Method Summary collapse

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_item_hash)
  @menu_name = menu_item_hash['menu_name']
  @section_name = menu_item_hash['section_name']
  @subsection_name = menu_item_hash['subsection_name']
  @section_text = menu_item_hash['section_text']
  @currency_symbol = menu_item_hash['currency_symbol']
  @photos = menu_item_hash['photos']
  super
end

Instance Attribute Details

#currency_symbolObject (readonly)

Returns the value of attribute currency_symbol.



105
106
107
# File 'lib/rlocu/menu.rb', line 105

def currency_symbol
  @currency_symbol
end

Returns the value of attribute menu_name.



105
106
107
# File 'lib/rlocu/menu.rb', line 105

def menu_name
  @menu_name
end

#photosObject (readonly)

Returns the value of attribute photos.



105
106
107
# File 'lib/rlocu/menu.rb', line 105

def photos
  @photos
end

#section_nameObject (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_textObject (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_nameObject (readonly)

Returns the value of attribute subsection_name.



105
106
107
# File 'lib/rlocu/menu.rb', line 105

def subsection_name
  @subsection_name
end

#typeObject (readonly)

Returns the value of attribute type.



105
106
107
# File 'lib/rlocu/menu.rb', line 105

def type
  @type
end