Class: CITLunch::Menu
- Inherits:
-
Object
- Object
- CITLunch::Menu
- Defined in:
- lib/pebbles/citlunch/menu.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#price ⇒ Object
readonly
Returns the value of attribute price.
Instance Method Summary collapse
-
#initialize(record) ⇒ Menu
constructor
A new instance of Menu.
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
#details ⇒ Object (readonly)
Returns the value of attribute details.
3 4 5 |
# File 'lib/pebbles/citlunch/menu.rb', line 3 def details @details end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/pebbles/citlunch/menu.rb', line 3 def name @name end |
#price ⇒ Object (readonly)
Returns the value of attribute price.
3 4 5 |
# File 'lib/pebbles/citlunch/menu.rb', line 3 def price @price end |