#NEWLINE# def stats_ranked( self , region , summoner_id , season = None ) : #NEWLINE# #INDENT# '\n        Summoner ranked stats\n\n        region: Region where to retrieve the data. Use the constants included in this package.\n        summoner_id: Summoner ID.\n\n        returns list of player ranked stats\n\n        champions       List[ChampionStatsDto]      List of aggregated stats summarized by champion.\n        modifyDate      long                        Date stats were last modified specified as epoch milliseconds.\n        summonerId      long                        Summoner ID.\n\n        ChampionStatsDto\n        id          int                     Champion id.\n        name        string                  Champion name.\n        stats       AggregatedStatsDto      Aggregated stats associated with the champion.\n\n        AggregatedStatsDto\n        averageAssists                  int     Dominion only.\n        averageChampionsKilled          int     Dominion only.\n        averageCombatPlayerScore        int     Dominion only.\n        averageNodeCapture              int     Dominion only.\n        averageNodeCaptureAssist        int     Dominion only.\n        averageNodeNeutralize           int     Dominion only.\n        averageNodeNeutralizeAssist     int     Dominion only.\n        averageNumDeaths                int     Dominion only.\n        averageObjectivePlayerScore     int     Dominion only.\n        averageTeamObjective            int     Dominion only.\n        averageTotalPlayerScore         int     Dominion only.\n        botGamesPlayed                  int \n        killingSpree                    int \n        maxAssists                      int     Dominion only.\n        maxChampionsKilled              int     \n        maxCombatPlayerScore            int     Dominion only.\n        maxLargestCriticalStrike        int \n        maxLargestKillingSpree          int \n        maxNodeCapture                  int     Dominion only.\n        maxNodeCaptureAssist            int     Dominion only.\n        maxNodeNeutralize               int     Dominion only.\n        maxNodeNeutralizeAssist         int     Dominion only.\n        maxObjectivePlayerScore         int     Dominion only.\n        maxTeamObjective                int     Dominion only.\n        maxTimePlayed                   int \n        maxTimeSpentLiving              int \n        maxTotalPlayerScore             int     Dominion only.\n        mostChampionKillsPerSession     int \n        mostSpellsCast                  int \n        normalGamesPlayed               int \n        rankedPremadeGamesPlayed        int \n        rankedSoloGamesPlayed           int \n        totalAssists                    int \n        totalChampionKills              int \n        totalDamageDealt                int \n        totalDamageTaken                int \n        totalDoubleKills                int \n        totalFirstBlood                 int \n        totalGoldEarned                 int \n        totalHeal                       int \n        totalMagicDamageDealt           int \n        totalMinionKills                int \n        totalNeutralMinionsKilled       int \n        totalNodeCapture                int     Dominion only.\n        totalNodeNeutralize             int     Dominion only.\n        totalPentaKills                 int \n        totalPhysicalDamageDealt        int \n        totalQuadraKills                int \n        totalSessionsLost               int \n        totalSessionsPlayed             int \n        totalSessionsWon                int \n        totalTripleKills                int \n        totalTurretsKilled              int \n        totalUnrealKills                int\n\n        throws HTTPError\n        ' #NEWLINE# url = '{0}/{1}/{2}/stats/by-summoner/{3}/ranked?api_key={4}' . format ( self . base_url , region , STATS_VERSION , summoner_id , self . api_key ) #NEWLINE# if season : #NEWLINE# #INDENT# url += '&season=SEASON{0}' . format ( season ) #NEWLINE# #UNINDENT# response = requests . get ( url ) #NEWLINE# response . raise_for_status ( ) #NEWLINE# content = response . json ( ) #NEWLINE# return api_classes . PlayerRankedStats ( ** content )