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

pysmartprice.SmartPriceBase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %
Metric Value
dl 0
loc 7
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A dumptojson() 0 3 1
A __init__() 0 2 1
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