Rufus::Scheduler::InJob

Job that occurs once, in a certain amount of time.

Attributes

parent[R]

If this InJob is a timeout job, parent points to the job that is subject to the timeout.

Public Class Methods

new(scheduler, t, params) click to toggle source
# File lib/rufus/sc/jobs.rb, line 210
def initialize (scheduler, t, params)
  @parent = params[:parent]
  super
end

Protected Instance Methods

determine_at() click to toggle source
# File lib/rufus/sc/jobs.rb, line 217
def determine_at

  iin = @t.is_a?(Fixnum) || @t.is_a?(Float) ?
    @t : Rufus.parse_duration_string(@t)

  @at = (Time.now + iin).to_f
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.