class Sightstone::Team

A Team @attr [Fixnum] createDate UNIX timestamp of team creation @attr [String] fullId id of the team @attr [Fixnum] lastGameDate UNIX timespamp of last game @attr [Fixnum] lastJoinDate UNIX timestamp of the date where the newest player joined the team @attr [Fixnum] lastJoinedRankedTeamQueueDate UNIX timestamp of latest team game @attr [Array<TeamHistoryGame>] matchHistory List of latest games @attr [Fixnum] modifyDate UNIX timestamp of latest team modification @attr [String] name team name @attr [Roster] roster team roster @attr [Fixnum] secondLastJoinDate UNIX timestamp of second latest join date of a member @attr [String] status team status @attr [String] tag tag of the team @attr [Array<TeamStat>] teamStatSummary array containing the stats of the team @attr [Fixnum] thridLastJoinDate UNIX timestamp of third latest join date of a member

Attributes

createDate[RW]
lastGameDate[RW]
lastJoinDate[RW]
lastJoinedRankedTeamQueueDate[RW]
matchHistory[RW]
modifyDate[RW]
name[RW]
roster[RW]
secondLastJoinDate[RW]
status[RW]
tag[RW]
teamId[RW]
teamStatSummary[RW]
thirdLastJoinDate[RW]

Public Class Methods

new(data) click to toggle source
# File lib/sightstone/team.rb, line 19
def initialize(data)
  @status = data['status']
  @tag = data['tag']
  @roster = Roster.new(data['roster'])
  @lastGameDate = data['lastGameDate']
  @modifyDate = data['modifyDate']
  @teamId = data['fullId']
  @lastJoinDate = data['lastJoinDate']
  @secondLastJoinDate = data['secondLastJoinDate']
  @matchHistory = []
  data['matchHistory'].each do |game|
    matchHistory << TeamHistoryGame.new(game)
  end
  @lastJoinedRankedTeamQueueDate=data['lastJoinedRankedTeamQueueDate']
  @name = data['name']
  @thirdLastJoinDate = data['thirdLastJoinDate']
  @createDate = data['createDate']
  @teamStatSummary = []
  data['teamStatSummary']['teamStatDetails'].each do |detail|
    teamStatSummary << TeamStat.new(detail)
  end

end