Class: Sightstone::TeamHistoryGame

Inherits:
Object
  • Object
show all
Defined in:
lib/sightstone/team.rb

Overview

Recent game of a team

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#assistsFixnum

assists of the team

Returns:

  • (Fixnum)

    the current value of assists



102
103
104
# File 'lib/sightstone/team.rb', line 102

def assists
  @assists
end

#deathsFixnum

number of deaths summed over all players of the team

Returns:

  • (Fixnum)

    the current value of deaths



102
103
104
# File 'lib/sightstone/team.rb', line 102

def deaths
  @deaths
end

#gameIdFixnum

ID of the game

Returns:

  • (Fixnum)

    the current value of gameId



102
103
104
# File 'lib/sightstone/team.rb', line 102

def gameId
  @gameId
end

#gameModeFixnum

mode of the game

Returns:

  • (Fixnum)

    the current value of gameMode



102
103
104
# File 'lib/sightstone/team.rb', line 102

def gameMode
  @gameMode
end

#invalidBoolean

Invalid flag # TODO what is this?

Returns:

  • (Boolean)

    the current value of invalid



102
103
104
# File 'lib/sightstone/team.rb', line 102

def invalid
  @invalid
end

#killsFixnum

kills of the team

Returns:

  • (Fixnum)

    the current value of kills



102
103
104
# File 'lib/sightstone/team.rb', line 102

def kills
  @kills
end

#mapIdFixnum

ID of the map

Returns:

  • (Fixnum)

    the current value of mapId



102
103
104
# File 'lib/sightstone/team.rb', line 102

def mapId
  @mapId
end

#opposingTeamKillsFixnum

number of kills of the enemy team

Returns:

  • (Fixnum)

    the current value of opposingTeamKills



102
103
104
# File 'lib/sightstone/team.rb', line 102

def opposingTeamKills
  @opposingTeamKills
end

#opposingTeamNameString

name of the enemy team

Returns:

  • (String)

    the current value of opposingTeamName



102
103
104
# File 'lib/sightstone/team.rb', line 102

def opposingTeamName
  @opposingTeamName
end

#winBoolean

true if game has been won by the team

Returns:

  • (Boolean)

    the current value of win



102
103
104
# File 'lib/sightstone/team.rb', line 102

def win
  @win
end