Class: SRL::Game::Statistics
- Inherits:
-
Object
- Object
- SRL::Game::Statistics
- Includes:
- Unmarshalable
- Defined in:
- lib/srl/game.rb
Overview
Summary information about runs of a particular game.
Instance Attribute Summary collapse
-
#largestRace ⇒ Object
(also: #largest_race_id)
readonly
The ID of the race with the highest number of entrants.
-
#largestRaceSize ⇒ Object
(also: #largest_race_player_count, #largest_race_size)
readonly
Number of entrants in the largest race of the game associated with these Statistics.
-
#totalPlayers ⇒ Object
(also: #total_players)
readonly
Number of players that have participated in a race of a given game.
-
#totalRaces ⇒ Object
(also: #total_races)
readonly
Number of races that a particular game has had.
-
#totalRaceTime ⇒ Object
(also: #total_race_time)
readonly
Number of seconds that this game has been raced.
-
#totalTimePlayed ⇒ Object
(also: #total_time_played)
readonly
Number of seconds that this game has been played for.
Method Summary
Methods included from Unmarshalable
Instance Attribute Details
#largestRace ⇒ Object (readonly) Also known as: largest_race_id
The ID of the race with the highest number of entrants.
98 99 100 |
# File 'lib/srl/game.rb', line 98 def largestRace @largestRace end |
#largestRaceSize ⇒ Object (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.
103 104 105 |
# File 'lib/srl/game.rb', line 103 def largestRaceSize @largestRaceSize end |
#totalPlayers ⇒ Object (readonly) Also known as: total_players
Number of players that have participated in a race of a given game.
94 95 96 |
# File 'lib/srl/game.rb', line 94 def totalPlayers @totalPlayers end |
#totalRaces ⇒ Object (readonly) Also known as: total_races
Number of races that a particular game has had.
89 90 91 |
# File 'lib/srl/game.rb', line 89 def totalRaces @totalRaces end |
#totalRaceTime ⇒ Object (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.
109 110 111 |
# File 'lib/srl/game.rb', line 109 def totalRaceTime @totalRaceTime end |
#totalTimePlayed ⇒ Object (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.
114 115 116 |
# File 'lib/srl/game.rb', line 114 def totalTimePlayed @totalTimePlayed end |