rankade.models.Subset

Module Contents

Classes

Subset

Represents a groups subset.

Subsets

Represents the list of subsets returned by the Rankade server. Individual subset objects returned by the server can be accessed in the same way as a regular list.

API

class Subset[source]

Bases: rankade.models.Base.RankadeObject

Represents a groups subset.

id: str = None

Subset id.

name: str = None

Subset name.

type: str = None

Subset type.

creationDate: datetime = None

Subset creation date.

isMain: bool = None

Subset is the main subset.

isCustom: bool = None

Subset is a custom subset.

icon: str = None

Subset icon URL.

countMatches: int = None

Total matches in subset.

game: Optional[Game] = None

Game associated with the subset.

firstMatch: Match = None

First match included in the subset.

lastMatch: Match = None

Last match included in the subset.

__post_init__()[source]
property matches

Includes bot the first and last match in the subset.

class Subsets(initlist=None)[source]

Bases: rankade.models.Base.ResultList[rankade.models.Subset.Subset]

Represents the list of subsets returned by the Rankade server. Individual subset objects returned by the server can be accessed in the same way as a regular list.

Initialization

_content_class: ClassVar[Type[RankadeObject]] = None

Classvar to allow the an object in the list to be created from a dict returned from the server.