collection

The class representing a collection

class rawgpy.collection.Collection(json)[source]

Class representing a collection of Games

add(game)[source]

Adds a game to the collection, requires you to be owner of it

Parameters:game (Game, or a list of.) – the game to be adde
creator

Returns the unpopulated User that made this collection

games

Returns a list of unpopulated Game objects that were added to this collection.

is_mine

Returns true if the collection is created by the currently authenticated user, requires authentication

populate()[source]

Populates the collection by re-requesting the data