Rufus::Scheduler::CronJob

Public Class Methods

new(scheduler, cronline, opts, block) click to toggle source
# File lib/rufus/scheduler/jobs.rb, line 600
def initialize(scheduler, cronline, opts, block)

  super(scheduler, cronline, opts, block)

  @cron_line = opts[:_t] || CronLine.new(cronline)
  @next_time = @cron_line.next_time
end

Public Instance Methods

brute_frequency() click to toggle source
# File lib/rufus/scheduler/jobs.rb, line 613
def brute_frequency

  @cron_line.brute_frequency
end
frequency() click to toggle source
# File lib/rufus/scheduler/jobs.rb, line 608
def frequency

  @cron_line.frequency
end

Protected Instance Methods

next_time_from(time) click to toggle source
# File lib/rufus/scheduler/jobs.rb, line 625
def next_time_from(time)

  @cron_line.next_time(time)
end
set_next_time(trigger_time, is_post=false) click to toggle source
# File lib/rufus/scheduler/jobs.rb, line 620
def set_next_time(trigger_time, is_post=false)

  @next_time = @cron_line.next_time
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.