def stats_ranked(self, region, summoner_id, season=None):

        url = '{0}/{1}/{2}/stats/by-summoner/{3}/ranked?api_key={4}'.format(
                self.base_url,
                region,
                STATS_VERSION,
                summoner_id,
                self.api_key)

        if season:
            url += '&season=SEASON{0}'.format(season)

        response = requests.get(url)
        response.raise_for_status()
        content = response.json()

        return api_classes.PlayerRankedStats(**content)
Summoner ranked stats
dataset/ETHPy150Open evangs/pyriot/pyriot/wrapper.py/PyRiot.stats_ranked