Class: SRL::Statistics

Inherits:
Object
  • Object
show all
Includes:
Unmarshalable
Defined in:
lib/srl/typedefs.rb

Instance Attribute Summary collapse

Method Summary

Methods included from Unmarshalable

included

Instance Attribute Details

#largestRaceObject (readonly) Also known as: largest_race_id

The ID of the race with the highest number of entrants.



234
235
236
# File 'lib/srl/typedefs.rb', line 234

def largestRace
  @largestRace
end

#largestRaceSizeObject (readonly) Also known as: largest_race_player_count, largest_race_size

Number of entrants in the largest race of the game associated with these Statistics.



239
240
241
# File 'lib/srl/typedefs.rb', line 239

def largestRaceSize
  @largestRaceSize
end

#totalPlayersObject (readonly) Also known as: total_players

Number of players that have participated in a race of a given game.



230
231
232
# File 'lib/srl/typedefs.rb', line 230

def totalPlayers
  @totalPlayers
end

#totalRacesObject (readonly) Also known as: total_races

Number of races that a particular game has had.



225
226
227
# File 'lib/srl/typedefs.rb', line 225

def totalRaces
  @totalRaces
end

#totalRaceTimeObject (readonly) Also known as: total_race_time

Number of seconds that this game has been raced. A sum of the worst time of each race.



245
246
247
# File 'lib/srl/typedefs.rb', line 245

def totalRaceTime
  @totalRaceTime
end

#totalTimePlayedObject (readonly) Also known as: total_time_played

Number of seconds that this game has been played for. A sum of all the times in all races.



250
251
252
# File 'lib/srl/typedefs.rb', line 250

def totalTimePlayed
  @totalTimePlayed
end