Class: Ordrin::Data::Tray

Inherits:
Object
  • Object
show all
Defined in:
lib/ordrin/data.rb

Overview

Represents a list of items in an order

Instance Method Summary collapse

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_sObject



143
144
145
# File 'lib/ordrin/data.rb', line 143

def to_s
  return @items*'+'
end