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, #scheduler, #t

Instance Method Summary collapse

Methods inherited from SimpleJob

#next_time

Methods inherited from Job

#pause, #paused?, #resume, #running, #schedule_info, #tags, #tags=, #trigger, #trigger_block, #unschedule

Constructor Details

#initialize(scheduler, t, params) ⇒ InJob

Returns a new instance of InJob.



313
314
315
316
317
# File 'lib/rufus/sc/jobs.rb', line 313

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.



311
312
313
# File 'lib/rufus/sc/jobs.rb', line 311

def parent
  @parent
end