Class: Scheddy::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/scheddy/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_beforeObject (readonly)

Returns the value of attribute finish_before.



10
11
12
# File 'lib/scheddy/context.rb', line 10

def finish_before
  @finish_before
end