Class: CITLunch::Menu

Inherits:
Object
  • Object
show all
Defined in:
lib/pebbles/citlunch/menu.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ Menu

Returns a new instance of Menu.



5
6
7
8
9
# File 'lib/pebbles/citlunch/menu.rb', line 5

def initialize(record)
  @price = record["price"]
  @name = record["name"]
  @details = record["details"]
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



3
4
5
# File 'lib/pebbles/citlunch/menu.rb', line 3

def details
  @details
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/pebbles/citlunch/menu.rb', line 3

def name
  @name
end

#priceObject (readonly)

Returns the value of attribute price.



3
4
5
# File 'lib/pebbles/citlunch/menu.rb', line 3

def price
  @price
end