class Rufus::AtJob
An ‘at’ job.
def initialize (scheduler, at, at_id, params, &block)
The constructor.
def initialize (scheduler, at, at_id, params, &block) super(scheduler, at_id, params, &block) @at = at end
def schedule_info
Returns the Time instance at which this job is scheduled.
def schedule_info Time.at(@at) end
def trigger
Triggers the job (calls the block)
def trigger @block.call @job_id, @at end