Module rating.objects.advantage

Classes

class Advantage (**kwargs)

An enumeration of the different types of advantages. Not strictly necessary, since one can add a string directly as an advantage, but this is more readable.

Base class for providing a serialization and deserialization mechanism.

Attributes

  • kwargs (dict): Keyword arguments

Args

  • kwargs (dict): Keyword arguments
Expand source code
class Advantage(BaseClass):
    """
    An enumeration of the different types of advantages. Not strictly necessary, since one can add 
    a string directly as an advantage, but this is more readable.
    """
    HOME_ADVANTAGE = "home_advantage"
    """String name for the home advantage."""

Ancestors

Class variables

var HOME_ADVANTAGE

String name for the home advantage.

Inherited members