Module itchio.Earnings

Expand source code
class Earnings:
    def __init__(
            self,
            currency: str,
            amount_formatted: str,
            amount: int):

        self.currency = currency
        self.amount_formatted = amount_formatted
        self.amount = amount

    @classmethod
    def parse_from_dict(cls, data: dict):
        return cls(
            currency=data["currency"],
            amount_formatted=data["amount_formatted"],
            amount=data["amount"]
        )

Classes

class Earnings (currency: str, amount_formatted: str, amount: int)
Expand source code
class Earnings:
    def __init__(
            self,
            currency: str,
            amount_formatted: str,
            amount: int):

        self.currency = currency
        self.amount_formatted = amount_formatted
        self.amount = amount

    @classmethod
    def parse_from_dict(cls, data: dict):
        return cls(
            currency=data["currency"],
            amount_formatted=data["amount_formatted"],
            amount=data["amount"]
        )

Static methods

def parse_from_dict(data: dict)
Expand source code
@classmethod
def parse_from_dict(cls, data: dict):
    return cls(
        currency=data["currency"],
        amount_formatted=data["amount_formatted"],
        amount=data["amount"]
    )