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 = {}) ⇒ TimeoutStart
constructor
A new instance of TimeoutStart.
- #new(script) ⇒ Object
Constructor Details
#initialize(seconds, options = {}) ⇒ TimeoutStart
Returns a new instance of TimeoutStart.
183 184 185 186 187 |
# File 'lib/roby/coordination/models/script.rb', line 183 def initialize(seconds, = {}) @seconds = seconds = Kernel. , emit: nil @event = [:emit] end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
181 182 183 |
# File 'lib/roby/coordination/models/script.rb', line 181 def event @event end |
#seconds ⇒ Object (readonly)
Returns the value of attribute seconds.
181 182 183 |
# File 'lib/roby/coordination/models/script.rb', line 181 def seconds @seconds end |
Instance Method Details
#new(script) ⇒ Object
189 190 191 192 193 194 195 |
# File 'lib/roby/coordination/models/script.rb', line 189 def new(script) event = if self.event script.instance_for(self.event) end Coordination::TaskScript::TimeoutStart.new(self, event) end |