Class: Ordrin::Data::Tray
- Inherits:
-
Object
- Object
- Ordrin::Data::Tray
- Defined in:
- lib/ordrin/data.rb
Overview
Represents a list of items in an order
Instance Method Summary collapse
-
#initialize(*items) ⇒ Tray
constructor
Store the list of items in this object.
- #to_s ⇒ Object
Constructor Details
#initialize(*items) ⇒ Tray
Store the list of items in this object. Each argument should be of type Item Arguments: items – A list of items to be ordered in this tray
139 140 141 |
# File 'lib/ordrin/data.rb', line 139 def initialize(*items) @items = items end |
Instance Method Details
#to_s ⇒ Object
143 144 145 |
# File 'lib/ordrin/data.rb', line 143 def to_s return @items*'+' end |