def leagues(self, region, summoner_id):

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

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

        leagues = dict()
        for league_id in content:
            league = api_classes.League(**content[league_id])

            leagues[league_id] = league

        return leagues
League information for summoner.
dataset/ETHPy150Open evangs/pyriot/pyriot/wrapper.py/PyRiot.leagues