Class: Vigor::TeamStat
- Inherits:
-
Object
- Object
- Vigor::TeamStat
- Defined in:
- lib/vigor/team.rb
Instance Attribute Summary collapse
-
#average_games_played ⇒ Object
Returns the value of attribute average_games_played.
-
#id ⇒ Object
Returns the value of attribute id.
-
#losses ⇒ Object
Returns the value of attribute losses.
-
#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.
54 55 56 57 58 59 |
# File 'lib/vigor/team.rb', line 54 def initialize(data) @id = data["fullId"] @losses = data["losses"] @average_games_played = data["averageGamesPlayed"] # this seemingly never returns anything but zero @wins = data["wins"] end |
Instance Attribute Details
#average_games_played ⇒ Object
Returns the value of attribute average_games_played.
52 53 54 |
# File 'lib/vigor/team.rb', line 52 def average_games_played @average_games_played end |
#id ⇒ Object
Returns the value of attribute id.
52 53 54 |
# File 'lib/vigor/team.rb', line 52 def id @id end |
#losses ⇒ Object
Returns the value of attribute losses.
52 53 54 |
# File 'lib/vigor/team.rb', line 52 def losses @losses end |
#wins ⇒ Object
Returns the value of attribute wins.
52 53 54 |
# File 'lib/vigor/team.rb', line 52 def wins @wins end |