Class: Rufus::Scheduler::InJob
- Defined in:
- lib/rufus/sc/jobs.rb
Overview
Job that occurs once, in a certain amount of time.
Instance Attribute Summary collapse
-
#parent ⇒ Object
readonly
If this InJob is a timeout job, parent points to the job that is subject to the timeout.
Attributes inherited from SimpleJob
Attributes inherited from Job
#block, #job_id, #last, #last_job_thread, #params, #running, #scheduler, #t
Instance Method Summary collapse
-
#initialize(scheduler, t, params) ⇒ InJob
constructor
A new instance of InJob.
Methods inherited from SimpleJob
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
#parent ⇒ Object (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 |