Class: Rufus::Scheduler::CronJob
- Defined in:
- lib/rufus/scheduler/jobs.rb
Instance Attribute Summary
Attributes inherited from RepeatJob
#first_at, #last_at, #paused_at, #times
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
- #brute_frequency ⇒ Object
- #frequency ⇒ Object
-
#initialize(scheduler, cronline, opts, block) ⇒ CronJob
constructor
A new instance of CronJob.
Methods inherited from RepeatJob
#determine_id, #occurrences, #pause, #paused?, #resume, #trigger
Methods inherited from Job
#[], #[]=, #call, #key?, #keys, #kill, #running?, #scheduled?, #threads, #trigger, #unschedule
Constructor Details
#initialize(scheduler, cronline, opts, block) ⇒ CronJob
Returns a new instance of CronJob.
597 598 599 600 601 602 603 |
# File 'lib/rufus/scheduler/jobs.rb', line 597 def initialize(scheduler, cronline, opts, block) super(scheduler, cronline, opts, block) @cron_line = opts[:_t] || CronLine.new(cronline) set_next_time(nil) end |
Instance Method Details
#brute_frequency ⇒ Object
610 611 612 613 |
# File 'lib/rufus/scheduler/jobs.rb', line 610 def brute_frequency @cron_line.brute_frequency end |
#frequency ⇒ Object
605 606 607 608 |
# File 'lib/rufus/scheduler/jobs.rb', line 605 def frequency @cron_line.frequency end |