Class: Sightstone::TeamHistoryGame
- Inherits:
-
Object
- Object
- Sightstone::TeamHistoryGame
- Defined in:
- lib/sightstone/team.rb
Overview
Recent game of a team
Instance Attribute Summary collapse
-
#assists ⇒ Fixnum
assists of the team.
-
#deaths ⇒ Fixnum
number of deaths summed over all players of the team.
-
#gameId ⇒ Fixnum
ID of the game.
-
#gameMode ⇒ Fixnum
mode of the game.
-
#invalid ⇒ Boolean
Invalid flag # TODO what is this?.
-
#kills ⇒ Fixnum
kills of the team.
-
#mapId ⇒ Fixnum
ID of the map.
-
#opposingTeamKills ⇒ Fixnum
number of kills of the enemy team.
-
#opposingTeamName ⇒ String
name of the enemy team.
-
#win ⇒ Boolean
true if game has been won by the team.
Instance Method Summary collapse
-
#initialize(data) ⇒ TeamHistoryGame
constructor
A new instance of TeamHistoryGame.
Constructor Details
#initialize(data) ⇒ TeamHistoryGame
Returns a new instance of TeamHistoryGame.
104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/sightstone/team.rb', line 104 def initialize(data) @gameMode = data['gameMode'] @mapId = data['mapId'] @assists = data['assists'] @opposingTeamName = data['opposingTeamName'] @invalid = data['invalid'] @deaths = data['deaths'] @gameId = data['gameId'] @kills = data['kills'] @win = data['win'] @opposingTeamKills = data['opposingTeamKills'] end |
Instance Attribute Details
#assists ⇒ Fixnum
assists of the team
102 103 104 |
# File 'lib/sightstone/team.rb', line 102 def assists @assists end |
#deaths ⇒ Fixnum
number of deaths summed over all players of the team
102 103 104 |
# File 'lib/sightstone/team.rb', line 102 def deaths @deaths end |
#gameId ⇒ Fixnum
ID of the game
102 103 104 |
# File 'lib/sightstone/team.rb', line 102 def gameId @gameId end |
#gameMode ⇒ Fixnum
mode of the game
102 103 104 |
# File 'lib/sightstone/team.rb', line 102 def gameMode @gameMode end |
#invalid ⇒ Boolean
Invalid flag # TODO what is this?
102 103 104 |
# File 'lib/sightstone/team.rb', line 102 def invalid @invalid end |
#kills ⇒ Fixnum
kills of the team
102 103 104 |
# File 'lib/sightstone/team.rb', line 102 def kills @kills end |
#mapId ⇒ Fixnum
ID of the map
102 103 104 |
# File 'lib/sightstone/team.rb', line 102 def mapId @mapId end |
#opposingTeamKills ⇒ Fixnum
number of kills of the enemy team
102 103 104 |
# File 'lib/sightstone/team.rb', line 102 def opposingTeamKills @opposingTeamKills end |
#opposingTeamName ⇒ String
name of the enemy team
102 103 104 |
# File 'lib/sightstone/team.rb', line 102 def opposingTeamName @opposingTeamName end |
#win ⇒ Boolean
true if game has been won by the team
102 103 104 |
# File 'lib/sightstone/team.rb', line 102 def win @win end |