Class: Rufus::Scheduler::InJob
- Inherits:
-
OneTimeJob
- Object
- Job
- OneTimeJob
- Rufus::Scheduler::InJob
- 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, duration, opts, block) ⇒ InJob
constructor
A new instance of InJob.
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, duration, opts, block) ⇒ InJob
Returns a new instance of InJob.
52 53 54 55 56 57 58 59 |
# File 'lib/rufus/scheduler/jobs_one_time.rb', line 52 def initialize(scheduler, duration, opts, block) super(scheduler, duration, opts, block) @next_time = @scheduled_at + opts[:_t] || Rufus::Scheduler.parse_in(duration, opts) end |