Class Rufus::Scheduler::Job
In: lib/rufus/sc/jobs.rb
Parent: Object

The base class for all types of jobs.

Methods

Attributes

block  [R]  The block to call when triggering
job_id  [R]  The identifier for this job.
last  [R]  Last time the job executed (for an {At|In}Job, it will mean ‘not executed’ if nil or when it got executed if set)

( Last time job got triggered (most useful with EveryJob, but can be useful with remaining instances of At/InJob (are they done ?)) )

last_job_thread  [R]  Returns the thread instance of the last triggered job. May be null (especially before the first trigger).
params  [R]  The job parameters (passed via the schedule method)
scheduler  [RW]  A reference to the scheduler owning this job
t  [R]  The initial, raw, scheduling info (at / in / every / cron)

Public Class methods

Public Instance methods

Generally returns the string/float/integer used to schedule the job (seconds, time string, date string)

Returns the list of tags attached to the job.

Sets the list of tags attached to the job (Usually they are set via the schedule every/at/in/cron method).

Triggers the job.

Simply encapsulating the block#call/trigger operation, for easy override.

Unschedules this job.

[Validate]