Class: Rufus::Scheduler::OneTimeJob
- 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
Methods inherited from Job
#[], #[]=, #call, #initialize, #key?, #keys, #kill, #running?, #scheduled?, #threads, #trigger, #unschedule
Constructor Details
This class inherits a constructor from Rufus::Scheduler::Job
Instance Method Details
#occurrences(time0, time1) ⇒ Object
341 342 343 344 |
# File 'lib/rufus/scheduler/jobs.rb', line 341 def occurrences(time0, time1) (time >= time0 && time <= time1) ? [ time ] : [] end |