Class: TeamStat
- Inherits:
-
Object
- Object
- TeamStat
- Defined in:
- lib/sightstone/team.rb
Instance Attribute Summary (collapse)
-
- (Object) averageGamesPlayed
Returns the value of attribute averageGamesPlayed.
-
- (Object) losses
Returns the value of attribute losses.
-
- (Object) teamId
Returns the value of attribute teamId.
-
- (Object) teamStatType
Returns the value of attribute teamStatType.
-
- (Object) wins
Returns the value of attribute wins.
Instance Method Summary (collapse)
-
- (TeamStat) initialize(data)
constructor
A new instance of TeamStat.
Constructor Details
- (TeamStat) initialize(data)
Returns a new instance of TeamStat
52 53 54 55 56 57 58 59 |
# File 'lib/sightstone/team.rb', line 52 def initialize(data) @wins = data['wins'] @losses = data['losses'] @averageGamesPlayed = data['averageGamesPlayed'] @teamId = data['teamId'] @teamStatType = data['teamStatType'] end |
Instance Attribute Details
- (Object) averageGamesPlayed
Returns the value of attribute averageGamesPlayed
51 52 53 |
# File 'lib/sightstone/team.rb', line 51 def averageGamesPlayed @averageGamesPlayed end |
- (Object) losses
Returns the value of attribute losses
51 52 53 |
# File 'lib/sightstone/team.rb', line 51 def losses @losses end |
- (Object) teamId
Returns the value of attribute teamId
51 52 53 |
# File 'lib/sightstone/team.rb', line 51 def teamId @teamId end |
- (Object) teamStatType
Returns the value of attribute teamStatType
51 52 53 |
# File 'lib/sightstone/team.rb', line 51 def teamStatType @teamStatType end |
- (Object) wins
Returns the value of attribute wins
51 52 53 |
# File 'lib/sightstone/team.rb', line 51 def wins @wins end |