Skip to content

Clan ranking list

ClanRanking

Bases: BaseModel

clan ranking model

Source code in pyclasher/api/models/clan_ranking_list.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
class ClanRanking(BaseModel):
    @property
    def clan_level(self):
        return self._get_data('clanLevel')

    @property
    def clan_points(self):
        return self._get_data('clanPoints')

    @property
    def location(self):
        return Location(self._get_data('location'))

    @property
    def members(self):
        return self._get_data('members')

    @property
    def tag(self):
        return self._get_data('tag')

    @property
    def name(self):
        return self._get_data('name')

    @property
    def rank(self):
        return self._get_data('rank')

    @property
    def previous_rank(self):
        return self._get_data('previousRank')

    @property
    def badge_urls(self):
        return BadgeUrls(self._get_data('badgeUrls'))

badge_urls: BadgeUrls property

badge URLs of the clan

:return: the clan's badge URLs :rtype: BadgeUrls

clan_level: int property

level of the clan

:return: the clan's level :rtype: int

clan_points: int property

points of the clan

:return: the clan's points :rtype: int

location: Location property

location of the clan

:return: the clan's location :rtype: Location

members: int property

member count of the clan

:return: the clan's member count

name: str property

clan name

:return: the clan name :rtype: str

previous_rank: int property

previous clan rank

:return: the previous clan's rank :rtype: int

rank: int property

clan rank

:return: the clan's rank :rtype: int

tag: str property

clan tag

:return: the clan tag :rtype: str

ClanRankingList

Bases: IterBaseModel

clan ranking list model

can be iterated over

Source code in pyclasher/api/models/clan_ranking_list.py
44
45
46
47
48
49
50
51
class ClanRankingList(IterBaseModel):
    _iter_rtype = ClanRanking

    def __getitem__(self, item):
        return super().__getitem__(item)

    def __next__(self):
        return super().__next__()