SpdRns::Race
Inherits Reference < Object
Constructors
new(id : String = "<none>")
SourceInstance methods
add_observer(user : User)
Sourcecancel
Sourceclose
Sourcedelete(reason : String = nil)
Sourceelapsed_time
Sourceend_time=(end_time : Time | Nil)
Time at which the Race timer ended (all participants finished/DOFd)
finish
Sourcemembership?(user) : Membership | Nil
Return the Membership struct for the given User. Nil if the User is not a member of the Race
modify
Sourceopen
Sourcepause
Sourcestart
Sourceupdate_member(user, &)
Find the Member struct for the given User, passing it to block and
replacing it in the Member list with the block's return value.
valid_actions
SourceMacros
ensure_state(state, ret_value = false)
Source