-
Notifications
You must be signed in to change notification settings - Fork 50
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
Branches - Erika #49
base: master
Are you sure you want to change the base?
Branches - Erika #49
Conversation
Design Scaffolding for the Hotel project
HotelWhat We're Looking ForTest Inspection
Code Review
Overall FeedbackVery far from complete but we've already talked about that. There are some indications of lack of understanding, but in areas we've also talked about since submitting this assignment. Definitely worth taking the time to redo this like we've talked about :) |
lib/service.rb
Outdated
|
||
|
||
def room_cost(duration) | ||
@cost = (duration - 1) * price |
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 is not useful as an instance variable here because it's specific to a specific room, not to the service instance.
lib/time.rb
Outdated
@duration = duration | ||
end | ||
|
||
def reserve_time(date1, date2) |
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.
The code in this method seems to indicate a lack of understanding around instance variables.
Every line except the last one isn't updating the values.
lib/time.rb
Outdated
attr_reader :check_in, :check_out, :duration | ||
|
||
def initialize | ||
@check_in = check_in |
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 doesn't make sense here because you aren't taking params in the initialize method.
lib/time.rb
Outdated
require_relative '../lib/reservation' | ||
require_relative '../lib/service' | ||
|
||
class Dates |
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 whole class is pretty wonky. If it's not clear to you now what makes it wonky, I definitely wanna walk through that with you
…rb, updated reservation_test for cost
…tError-inception.
…attr_reader for nights
…s from date_range
…ervation_list (room assignment now meaningful)
… available rooms method
… in reserve_room method
Hotel
Congratulations! You're submitting your assignment!
Comprehension Questions