Class: TeamStat

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#averageGamesPlayedObject

Returns the value of attribute averageGamesPlayed.



51
52
53
# File 'lib/sightstone/team.rb', line 51

def averageGamesPlayed
  @averageGamesPlayed
end

#lossesObject

Returns the value of attribute losses.



51
52
53
# File 'lib/sightstone/team.rb', line 51

def losses
  @losses
end

#teamIdObject

Returns the value of attribute teamId.



51
52
53
# File 'lib/sightstone/team.rb', line 51

def teamId
  @teamId
end

#teamStatTypeObject

Returns the value of attribute teamStatType.



51
52
53
# File 'lib/sightstone/team.rb', line 51

def teamStatType
  @teamStatType
end

#winsObject

Returns the value of attribute wins.



51
52
53
# File 'lib/sightstone/team.rb', line 51

def wins
  @wins
end