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

Created Automobile class with attributes and hash #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dnourie
Copy link

@dnourie dnourie commented May 8, 2014

Not sure if I handled the hash the way you wanted. Also, wasn't sure what to do with the wheels. Lastly, so why would you create a class like this verses the Struct class we learned about before? Thank you!

"My car is #{@color}, its make is #{@make}, and #{@year}"
end

def car
Copy link
Member

Choose a reason for hiding this comment

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

If Automobile defines the data of a car, then I don't think the method car should handle "putting" its values to the screen.

@jwo
Copy link
Member

jwo commented May 23, 2014

This looks great @dnourie2

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