Class: Scheddy::Context
- Inherits:
-
Object
- Object
- Scheddy::Context
- Defined in:
- lib/scheddy/context.rb
Instance Attribute Summary collapse
-
#finish_before ⇒ Object
readonly
Returns the value of attribute finish_before.
Instance Method Summary collapse
-
#initialize(scheduler, task) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(scheduler, task) ⇒ Context
Returns a new instance of Context.
4 5 6 7 |
# File 'lib/scheddy/context.rb', line 4 def initialize(scheduler, task) @scheduler = scheduler @finish_before = task.finish_before end |
Instance Attribute Details
#finish_before ⇒ Object (readonly)
Returns the value of attribute finish_before.
10 11 12 |
# File 'lib/scheddy/context.rb', line 10 def finish_before @finish_before end |