Class: Rufus::Scheduler::AtJob
- Inherits:
-
OneTimeJob
- Object
- Job
- OneTimeJob
- Rufus::Scheduler::AtJob
- Defined in:
- lib/rufus/scheduler/jobs.rb
Instance Attribute Summary
Attributes inherited from Job
#callable, #count, #handler, #id, #last_time, #last_work_time, #mean_work_time, #next_time, #opts, #original, #scheduled_at, #tags, #unscheduled_at
Instance Method Summary collapse
-
#initialize(scheduler, time, opts, block) ⇒ AtJob
constructor
A new instance of AtJob.
Methods inherited from OneTimeJob
Methods inherited from Job
#[], #[]=, #call, #key?, #keys, #kill, #running?, #scheduled?, #threads, #trigger, #unschedule
Constructor Details
#initialize(scheduler, time, opts, block) ⇒ AtJob
Returns a new instance of AtJob.
368 369 370 371 372 373 374 |
# File 'lib/rufus/scheduler/jobs.rb', line 368 def initialize(scheduler, time, opts, block) super(scheduler, time, opts, block) @next_time = opts[:_t] || Rufus::Scheduler.parse_at(time, opts) end |