Class: Sightstone::TeamStat

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

Overview

statistical overview of a team

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ TeamStat

Returns a new instance of TeamStat.



81
82
83
84
85
86
87
88
# File 'lib/sightstone/team.rb', line 81

def initialize(data)
  @wins = data['wins']
  @losses = data['losses']
  @averageGamesPlayed = data['averageGamesPlayed']
  @fullId = data['fullId']
  @teamStatType = data['teamStatType']

end

Instance Attribute Details

#averageFamesPlayedFixnum

average played games of member

Returns:

  • (Fixnum)

    the current value of averageFamesPlayed



79
80
81
# File 'lib/sightstone/team.rb', line 79

def averageFamesPlayed
  @averageFamesPlayed
end

#averageGamesPlayedObject

Returns the value of attribute averageGamesPlayed.



80
81
82
# File 'lib/sightstone/team.rb', line 80

def averageGamesPlayed
  @averageGamesPlayed
end

#fullIdString

id of the team

Returns:

  • (String)

    the current value of fullId



79
80
81
# File 'lib/sightstone/team.rb', line 79

def fullId
  @fullId
end

#lossesFixnum

number of lost games

Returns:

  • (Fixnum)

    the current value of losses



79
80
81
# File 'lib/sightstone/team.rb', line 79

def losses
  @losses
end

#teamStatTypeString

queue of the stat

Returns:

  • (String)

    the current value of teamStatType



79
80
81
# File 'lib/sightstone/team.rb', line 79

def teamStatType
  @teamStatType
end

#winsFixnum

number of won games

Returns:

  • (Fixnum)

    the current value of wins



79
80
81
# File 'lib/sightstone/team.rb', line 79

def wins
  @wins
end