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

The base class for all types of jobs.

Methods

new   schedule_info   tags   tags=   trigger   unschedule  

Attributes

block  [R]  The block to call when triggering
job_id  [R]  The identifier for this job.
job_thread  [R]  When the job is actually running, this attribute will hold the thread in which the job is running. Can be used to determine if a job is actually running.
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 ?)) )

params  [R]  The job parameters (passed via the schedule method)
scheduler  [R]  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.

Unschedules this job.

[Validate]