-
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
Carets - Maria - Hotel #35
base: master
Are you sure you want to change the base?
Conversation
…eating a new instance of room
HotelWhat We're Looking For
|
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.
Just some comments in your code.
require 'date' | ||
|
||
module Administration | ||
class 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.
If this class is just a room #, I'm not sure what functionality it serves.
module Administration | ||
class Reservation | ||
|
||
RATE = 200 |
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.
Good use of a constant!
lib/hotel.rb
Outdated
end | ||
|
||
def all_reservations | ||
@all_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.
This method seems to blank the list of reservations and then makes a new reservation, but with symbols for arguments. It doesn't make much sense.
Then it returns the list (with 1 element).
Hotel
Congratulations! You're submitting your assignment!
Comprehension Questions