Class: Roby::Coordination::Models::Script::TimeoutStart
- Defined in:
- lib/roby/coordination/models/script.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#seconds ⇒ Object
readonly
Returns the value of attribute seconds.
Instance Method Summary collapse
-
#initialize(seconds, options = Hash.new) ⇒ TimeoutStart
constructor
A new instance of TimeoutStart.
- #new(script) ⇒ Object
Constructor Details
#initialize(seconds, options = Hash.new) ⇒ TimeoutStart
Returns a new instance of TimeoutStart.
145 146 147 148 149 |
# File 'lib/roby/coordination/models/script.rb', line 145 def initialize(seconds, = Hash.new) @seconds = seconds = Kernel. , emit: nil @event = [:emit] end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
143 144 145 |
# File 'lib/roby/coordination/models/script.rb', line 143 def event @event end |
#seconds ⇒ Object (readonly)
Returns the value of attribute seconds.
142 143 144 |
# File 'lib/roby/coordination/models/script.rb', line 142 def seconds @seconds end |
Instance Method Details
#new(script) ⇒ Object
151 152 153 154 155 156 157 |
# 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 |