-
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
submitting project #44
base: master
Are you sure you want to change the base?
Conversation
end | ||
|
||
def book_room(start_date, end_date) | ||
available_rooms = find_room(start_date, end_date) |
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.
Where is find_room
implemented?
|
||
def available_rooms(start_date, end_date) | ||
invalid?(start_date, end_date) | ||
available_rooms = @rooms_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.
Where is this instance variable set?
|
||
end | ||
|
||
def room_number |
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 would this be a method and not an attr_accessor
?
end | ||
|
||
def start_date | ||
return @start_date.strftime |
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 logic should be done in the initialize and then just use attr_accessor
s to access the updated data
HotelWhat We're Looking For
You absolutely need to be using git more often. This is non-negotiable. You also must be answering the comprehension questions when you turn in your assignments. It seems that much of this submitted code would not run, as-is, so you need you get this code working and notify your instructor when this is done. |
Hotel
Congratulations! You're submitting your assignment!
Comprehension Questions