class Rufus::AtJob
An ‘at’ job.
def do_trigger
Triggers the job (calls the block)
def do_trigger @block.call @job_id, @at @scheduler.instance_variable_get(:@non_cron_jobs).delete @job_id end
def initialize (scheduler, at, at_id, params, &block)
def initialize (scheduler, at, at_id, params, &block) super(scheduler, at_id, params, &block) @at = at end
def next_time
a Time instance.
next_time is last_time (except for EveryJob instances). Returns
def next_time schedule_info end
def schedule_info
Returns the Time instance at which this job is scheduled.
def schedule_info Time.at(@at) end