-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Airport Challenge Complete #2515
base: main
Are you sure you want to change the base?
Conversation
lib/airport.rb
Outdated
end | ||
|
||
def check_for_storm | ||
fail unless @current_weather != 'stormy' |
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.
What do you think about changing this to fail if @current_weather == 'stormy'
? It might be easy to read when this is raising the error
plane | ||
end | ||
|
||
def def_capacity(num) |
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 might be redundant with the attr_accessor :capacity
above
@@ -0,0 +1,38 @@ | |||
class Airport |
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.
I think methods explain quite clearly what are they doing. I don't have problems to understand how the code works
@@ -0,0 +1,71 @@ | |||
require 'airport' |
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.
Tests seem clear and test appropriate features
Your name
Jimmy Lyons
User stories
Please list which user stories you've implemented (delete the ones that don't apply).
README checklist
Does your README contains instructions for