Class: Sightstone::TeamStat
- Inherits:
-
Object
- Object
- Sightstone::TeamStat
- Defined in:
- lib/sightstone/team.rb
Overview
statistical overview of a team
Instance Attribute Summary collapse
-
#averageFamesPlayed ⇒ Fixnum
average played games of member.
-
#averageGamesPlayed ⇒ Object
Returns the value of attribute averageGamesPlayed.
-
#fullId ⇒ String
id of the team.
-
#losses ⇒ Fixnum
number of lost games.
-
#teamStatType ⇒ String
queue of the stat.
-
#wins ⇒ Fixnum
number of won games.
Instance Method Summary collapse
-
#initialize(data) ⇒ TeamStat
constructor
A new instance of TeamStat.
Constructor Details
#initialize(data) ⇒ TeamStat
Returns a new instance of TeamStat.
81 82 83 84 85 86 87 88 |
# File 'lib/sightstone/team.rb', line 81 def initialize(data) @wins = data['wins'] @losses = data['losses'] @averageGamesPlayed = data['averageGamesPlayed'] @fullId = data['fullId'] @teamStatType = data['teamStatType'] end |
Instance Attribute Details
#averageFamesPlayed ⇒ Fixnum
average played games of member
79 80 81 |
# File 'lib/sightstone/team.rb', line 79 def averageFamesPlayed @averageFamesPlayed end |
#averageGamesPlayed ⇒ Object
Returns the value of attribute averageGamesPlayed.
80 81 82 |
# File 'lib/sightstone/team.rb', line 80 def averageGamesPlayed @averageGamesPlayed end |
#fullId ⇒ String
id of the team
79 80 81 |
# File 'lib/sightstone/team.rb', line 79 def fullId @fullId end |
#losses ⇒ Fixnum
number of lost games
79 80 81 |
# File 'lib/sightstone/team.rb', line 79 def losses @losses end |
#teamStatType ⇒ String
queue of the stat
79 80 81 |
# File 'lib/sightstone/team.rb', line 79 def teamStatType @teamStatType end |
#wins ⇒ Fixnum
number of won games
79 80 81 |
# File 'lib/sightstone/team.rb', line 79 def wins @wins end |