Class: TeamStat
- Inherits:
-
Object
- Object
- TeamStat
- Defined in:
- lib/sightstone/team.rb
Instance Attribute Summary collapse
-
#averageGamesPlayed ⇒ Object
Returns the value of attribute averageGamesPlayed.
-
#losses ⇒ Object
Returns the value of attribute losses.
-
#teamId ⇒ Object
Returns the value of attribute teamId.
-
#teamStatType ⇒ Object
Returns the value of attribute teamStatType.
-
#wins ⇒ Object
Returns the value of attribute wins.
Instance Method Summary collapse
-
#initialize(data) ⇒ TeamStat
constructor
A new instance of TeamStat.
Constructor Details
#initialize(data) ⇒ TeamStat
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
#averageGamesPlayed ⇒ Object
Returns the value of attribute averageGamesPlayed.
51 52 53 |
# File 'lib/sightstone/team.rb', line 51 def averageGamesPlayed @averageGamesPlayed end |
#losses ⇒ Object
Returns the value of attribute losses.
51 52 53 |
# File 'lib/sightstone/team.rb', line 51 def losses @losses end |
#teamId ⇒ Object
Returns the value of attribute teamId.
51 52 53 |
# File 'lib/sightstone/team.rb', line 51 def teamId @teamId end |
#teamStatType ⇒ Object
Returns the value of attribute teamStatType.
51 52 53 |
# File 'lib/sightstone/team.rb', line 51 def teamStatType @teamStatType end |
#wins ⇒ Object
Returns the value of attribute wins.
51 52 53 |
# File 'lib/sightstone/team.rb', line 51 def wins @wins end |