_________
r== | |
_ // | M.A. | ))))
|_)//(''''': | |
// \_____:_____.-------D )))))
// | === | / \
.:'//. \ \=| \ / .:'':./ )))))
:' // ': \ \ ''..'--:'-.. ':
'. '' .' \:.....:--'.-'' .'
':..:' ':..:'
git clonegem install bundle(if you don't have bundle already)bundleirb
require './lib/takeaway.rb'require './lib/menu.rb'require './lib/order.rb'require './lib/message.rb'takeaway = Takeaway.new- Creates a new takeaway objecttakeaway.show_menu- Prints the Menutakeaway.add_dish(dish, quantity)- Pass the name of the dish you want to order and the quantity (defaults to 1 if no quantity given).takeaway.show_total- Shows the total for all dishes added so far.takeaway.complete_order(phone_number)- Will send a text to the given phone number. To use this feature you will need to create a .env file containing your twilio account_sid, auth_token, and twilio phone number.
As a customer
So that I can check if I want to order something
I would like to see a list of dishes with prices
As a customer
So that I can order the meal I want
I would like to be able to select some number of several available dishes
As a customer
So that I can verify that my order is correct
I would like to check that the total I have been given matches the sum of the various dishes in my order
As a customer
So that I am reassured that my order will be delivered on time
I would like to receive a text such as "Thank you! Your order was placed and will be delivered before 18:52" after I have ordered