-
Notifications
You must be signed in to change notification settings - Fork 103
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
Blackouts #170
Conversation
} | ||
repeat_hash= { | ||
type: @blackout_type, | ||
interval: @blackout_interval } |
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.
Please use consistent formatting on the hashes, lining up the brackets etc.
attr_accessor :blackout | ||
|
||
def initialize(blackout) | ||
@global_blackout = Array(blackout) |
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.
should this just be @blackout
or do we need to add an attr_
for global_blackout
as well?
I might just be missing something due to a case of the Mondays.
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 it should be something else. We have a GlobalBlackout object what does a blackout of a GlobalBlackout mean? is it the schedule of a GlobalBlackout? if so then it should be called schedule. That way it's GlobalBlackout.schedule as oppose to GlobalBlackout.blackout.
Silo and site level blackout Gem changes