Class | God::TimedEvent |
In: |
lib/god/driver.rb
|
Parent: | Object |
The TimedEvent class represents an event in the future. This class is used by the drivers to schedule upcoming conditional tests and other scheduled events.
at | [RW] | The Time at which this event is due. |
Instantiate a new TimedEvent that will be triggered after the specified delay.
delay - The optional Numeric number of seconds from now at which to
trigger (default: 0).
Compare this event to another.
other - The other TimedEvent.
Returns -1 if this event is before the other, 0 if the two events are
due at the same time, 1 if the other event is later.