class SRL::Race::Entrant

A participant in an active race.

Attributes

comment[R]

The comment entered by this entrant for this race, if applicable.

displayname[R]

This entrant's player name.

message[R]

The comment entered by this entrant for this race, if applicable.

name[R]

This entrant's player name.

place[R]

The position that this entrant finished this race in.

position[R]

The position that this entrant finished this race in.

statetext[R]

The state of this entrant in the race. Is he ready, finished, neither?

FIXME

Switch to an enum-like implementation with symbols.

time[R]

The number of seconds that this entrant took to complete the race goal.

Notes

A time of -1 indicates a forfeit.

twitch[R]

This entrant's Twitch account name.

Public Instance Methods

forfeit?() click to toggle source

Did this entrant forfeit the race?

# File lib/srl/race.rb, line 77
def forfeit?
  time == -1
end