-
Notifications
You must be signed in to change notification settings - Fork 45
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
Octos- Ari- Hotel #48
base: master
Are you sure you want to change the base?
Conversation
@ari-1 You need to answer the comprehension questions - then we can review the code! |
lib/reservation.rb
Outdated
end | ||
|
||
def self.all | ||
return @reservations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You cannot use instance variables in class methods because they refer to the overall class.
lib/front_desk.rb
Outdated
new_ticket[:start_date] = Date.parse(start_date) | ||
new_ticket[:end_date] = Date.parse(end_date) | ||
|
||
@total_rooms.find do |room| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use find
here? Could you use room.sample
by itself without the find
method?
HotelWhat We're Looking For
For a project of this length, you should be committing using git much more often. For the amount of code you had written, you had a very insufficient number of tests. |
Hotel
Congratulations! You're submitting your assignment!
Comprehension Questions