Class: Rufus::Scheduler::EvInJob

Inherits:
RepeatJob show all
Defined in:
lib/rufus/scheduler/jobs.rb

Overview

A parent class of EveryJob and IntervalJob

Direct Known Subclasses

EveryJob, IntervalJob

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

Methods inherited from RepeatJob

#determine_id, #initialize, #occurrences, #pause, #paused?, #resume, #trigger

Methods inherited from Job

#[], #[]=, #call, #initialize, #key?, #keys, #kill, #running?, #scheduled?, #threads, #trigger, #unschedule

Constructor Details

This class inherits a constructor from Rufus::Scheduler::RepeatJob

Instance Method Details

#first_at=(first) ⇒ Object



508
509
510
511
512
513
# File 'lib/rufus/scheduler/jobs.rb', line 508

def first_at=(first)

  super

  @next_time = @first_at
end