Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timbo's Takeaway #2225

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Timbo's Takeaway #2225

wants to merge 4 commits into from

Conversation

timbo-graham
Copy link

@timbo-graham timbo-graham commented May 2, 2022

Your name

Please write your full name here to make it easier to find your pull request.

User stories

Please list which user stories you've implemented (delete the ones that don't apply).

  • User story 1: "I would like to see a list of dishes with prices"
  • User story 2: "I would like to be able to select some number of several available dishes"
  • User story 3: "I would like to check that the total I have been given matches the sum of the various dishes in my order"
  • User story 4: "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"

README checklist

Does your README contains instructions for

  • how to install,
  • how to run,
  • and how to test your code?

Here is a pill that can help you write a great README!

@order = []
@order_total = 0
@simp_order = ""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd put all the text stuff into its own class. I did have difficulties getting it to work from the order object, but my feeling was since it's a new noun, it should probably be its own class.

"Your order so far is: #{simplify_order}"

end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be re-written so as not to be hard coded, but I like that you added a function that states the quantity of each item - that's not something I did.

attr_reader :menu

def initialize

Copy link

@jimmy-lyons jimmy-lyons May 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be re-written to import different menus, but I agree that a new menu instance should be initialised with a specific menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants