Class: Rufus::Scheduler::InJob

Inherits:
SimpleJob show all
Defined in:
lib/rufus/sc/jobs.rb

Overview

Job that occurs once, in a certain amount of time.

Instance Attribute Summary collapse

Attributes inherited from SimpleJob

#at, #last

Attributes inherited from Job

#block, #job_id, #last, #last_job_thread, #params, #running, #scheduler, #t

Instance Method Summary collapse

Methods inherited from SimpleJob

#next_time

Methods inherited from Job

#schedule_info, #tags, #tags=, #trigger, #trigger_block, #unschedule

Constructor Details

#initialize(scheduler, t, params) ⇒ InJob

Returns a new instance of InJob.



226
227
228
229
# File 'lib/rufus/sc/jobs.rb', line 226

def initialize (scheduler, t, params)
  @parent = params[:parent]
  super
end

Instance Attribute Details

#parentObject (readonly)

If this InJob is a timeout job, parent points to the job that is subject to the timeout.



224
225
226
# File 'lib/rufus/sc/jobs.rb', line 224

def parent
  @parent
end