Passed
Push — master ( 272d30...b93c80 )
by Steffen
01:01
created

Sticker.value()   A

Complexity

Conditions 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
c 1
b 0
f 1
dl 0
loc 10
rs 9.4285
1
#!/usr/bin/python
2
# -*- coding: utf-8 -*-
3
4
from kuon.watcher.adapters.models import AbstractEntity
5
6
7
class Sticker(AbstractEntity):
8
    """General Sticker Class"""
9
10
    def __init__(self, name: str, image: str, wear_value: float):
11
        """Initializing function
12
13
        :param name:
14
        :param image:
15
        :param wear_value:
16
        """
17
        self._name = name
18
        self._image = image
19
        self._wear_value = wear_value
20
21
    @property
22
    def value(self):
23
        """Return all important information regarding the Stickers
24
25
        :return:
26
        """
27
        return {
28
            'name': self._name,
29
            'image': self._image,
30
            'wear_value': self._wear_value
31
        }
32