12 lines
485 B
Python
12 lines
485 B
Python
class AccessoryEntity:
|
|
def __init__(self, accessory_id: int, name: str, width: float, height: float, length: float, weight: float):
|
|
self.id = accessory_id
|
|
self.name = name
|
|
self.width = width
|
|
self.height = height
|
|
self.length = length
|
|
self.weight = weight
|
|
|
|
def __repr__(self):
|
|
return f"<AccessoryEntity(id={self.id}, name={self.name}, width={self.width}, height={self.height}, length={self.length}, weight={self.weight})>"
|