Class: AzkabanScheduler::Schedule
- Inherits:
-
Object
- Object
- AzkabanScheduler::Schedule
- Defined in:
- lib/azkaban_scheduler/schedule.rb
Defined Under Namespace
Classes: Stats
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#stats ⇒ Object
Returns the value of attribute stats.
Instance Method Summary collapse
-
#initialize(project_name, flow_name, options = {}) ⇒ Schedule
constructor
A new instance of Schedule.
Constructor Details
#initialize(project_name, flow_name, options = {}) ⇒ Schedule
Returns a new instance of Schedule.
6 7 8 9 10 11 12 13 14 |
# File 'lib/azkaban_scheduler/schedule.rb', line 6 def initialize(project_name, flow_name, ={}) @project_name = project_name @flow_name = flow_name @period = [:period] @is_recurring = !![:period] @time = [:time] || Time.now.to_i @failure_emails = [:failure_emails] @success_emails = [:success_emails] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/azkaban_scheduler/schedule.rb', line 4 def id @id end |
#stats ⇒ Object
Returns the value of attribute stats.
4 5 6 |
# File 'lib/azkaban_scheduler/schedule.rb', line 4 def stats @stats end |