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.

Methods

<=>   due?   new  

Included Modules

Comparable

Attributes

at  [RW]  The Time at which this event is due.

Public Class methods

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).

Public Instance methods

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.

Is the current event due (current time >= event time)?

Returns true if the event is due, false if not.

[Validate]