Skip to content

Developerproduct

ropython.shared.developerproduct

DeveloperProduct (Base)

Developer Product Class

Source code in ropython/shared/developerproduct.py
class DeveloperProduct(Base):
    """
    Developer Product Class
    """

    def __init__(self, Data: dict):
        """
        Initializes developer product class

        Attributes:
            Data: A dictionary including the product `Id`, `Name`, `Description`, and `Price`.
        """
        self.Id = Data["Id"]
        self.Name = Data["Name"]
        self.Description = Data["Description"]
        self.Price = Data["Price"]

__init__(self, Data: dict) special

Initializes developer product class

Attributes:

Name Type Description
Data

A dictionary including the product Id, Name, Description, and Price.

Source code in ropython/shared/developerproduct.py
def __init__(self, Data: dict):
    """
    Initializes developer product class

    Attributes:
        Data: A dictionary including the product `Id`, `Name`, `Description`, and `Price`.
    """
    self.Id = Data["Id"]
    self.Name = Data["Name"]
    self.Description = Data["Description"]
    self.Price = Data["Price"]