Class: TeamStat

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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