class Rlocu2::Menu::Item
Attributes
description[RW]
name[RW]
option_groups[RW]
price[RW]
type[RW]
Public Class Methods
new(item_hash)
click to toggle source
# File lib/rlocu2/objects.rb, line 176 def initialize(item_hash) @type = item_hash['type'] @name = item_hash['name'] @description = item_hash['description'] @price = item_hash['price'] self.option_groups = item_hash['option_groups'] end
Public Instance Methods
option_groups=(option_groups_list)
click to toggle source
# File lib/rlocu2/objects.rb, line 184 def option_groups=(option_groups_list) @option_groups = [] return if option_groups_list.nil? option_groups_list.each { |option_group| @option_groups << Rlocu2::Menu::OptionGroup.new(option_group) } end