| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | #!/usr/bin/python |
||
| 2 | # -*- coding: utf-8 -*- |
||
| 3 | 1 | from kuon.watcher.adapters.models import AbstractEntity |
|
| 4 | |||
| 5 | |||
| 6 | 1 | class Sticker(AbstractEntity): |
|
| 7 | """General Sticker Class""" |
||
| 8 | |||
| 9 | 1 | def __init__(self, name: str, image: str, wear_value: float) -> None: |
|
| 10 | """Initializing function |
||
| 11 | |||
| 12 | :type name: str |
||
| 13 | :type image: str |
||
| 14 | :type wear_value: float |
||
| 15 | """ |
||
| 16 | 1 | self._name = name |
|
| 17 | 1 | self._image = image |
|
| 18 | 1 | self._wear_value = wear_value |
|
| 19 | |||
| 20 | 1 | @property |
|
| 21 | 1 | def value(self) -> dict: |
|
| 22 | """Return all important information regarding the Stickers |
||
| 23 | |||
| 24 | :return: |
||
| 25 | """ |
||
| 26 | 1 | return { |
|
| 27 | 'name': self._name, |
||
| 28 | 'image': self._image, |
||
| 29 | 'wear_value': self._wear_value |
||
| 30 | } |
||
| 31 |