Class: Rufus::Scheduler::AtJob
- Inherits:
-
OneTimeJob
- Object
- Job
- OneTimeJob
- Rufus::Scheduler::AtJob
- Defined in:
- lib/rufus/scheduler/jobs_one_time.rb
Constant Summary
Constants inherited from Job
Instance Attribute Summary
Attributes inherited from Job
#callable, #count, #handler, #id, #last_time, #last_work_time, #locals, #mean_work_time, #name, #next_time, #opts, #original, #previous_time, #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, #check_frequency, #entries, #has_key?, #keys, #kill, #next_times, #past?, #resume_discard_past=, #running?, #scheduled?, #source_location, #threads, #trigger, #trigger_off_schedule, #unschedule, #values
Constructor Details
#initialize(scheduler, time, opts, block) ⇒ AtJob
Returns a new instance of AtJob.
41 42 43 44 45 46 47 |
# File 'lib/rufus/scheduler/jobs_one_time.rb', line 41 def initialize(scheduler, time, opts, block) super(scheduler, time, opts, block) @next_time = opts[:_t] || Rufus::Scheduler.parse_at(time, opts) end |