Sha256: 6a1d9e2d375b61f1d67d54b98438ea8803c36292785a1c46083a8c9183802cb2
Contents?: true
Size: 411 Bytes
Versions: 5
Compression:
Stored size: 411 Bytes
Contents
module Hungry class Menu class Category < Resource attr_accessor :id, :name, :dishes, :menu def dishes @dishes ||= [] end def dishes=(new_dishes) @dishes = new_dishes.map do |attributes| dish = Menu::Dish.new(attributes) dish.category = self dish.data_source = data_source dish end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems