class Roby::Coordination::Models::Script::TimeoutStart

Attributes

event[R]
seconds[R]

Public Class Methods

new(seconds, options = Hash.new) click to toggle source
# File lib/roby/coordination/models/script.rb, line 145
def initialize(seconds, options = Hash.new)
    @seconds = seconds
    options = Kernel.validate_options options, emit: nil
    @event = options[:emit]
end

Public Instance Methods

new(script) click to toggle source
# File lib/roby/coordination/models/script.rb, line 151
def new(script)
    event = if self.event
                script.instance_for(self.event)
            end

    Coordination::TaskScript::TimeoutStart.new(self, event)
end