Completed
Push — master ( 44c083...76de5b )
by Asif
32:09
created

pysmartprice.SmartPriceBase.dumptojson()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 3
rs 10
1
import json
2
3
4
class SmartPriceBase(object):
5
    def __init__(self, params):
6
        self.__dict__.update(params)
7
8
    @property
9
    def dumptojson(self):
10
        return json.dumps(self.__dict__)
11
12
13
class SmartPriceResult(SmartPriceBase):
14
    pass
15
16
17
class SmartPriceSeller(SmartPriceBase):
18
    pass
19