Passed
Push — master ( ed280a...13e7ac )
by Dave
01:13
created

domain.minerpool.MinerPool.__init__()   A

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nop 4
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
class MinerPool(object):
2
    '''A pool that is available for a miner
3
    has a priority that can be switched.
4
    Links Miner to Pool
5
    '''
6
    def __init__(self, miner: Miner, priority, pool: AvailablePool):
7
        self.miner = miner
8
        self.priority = priority
9
        self.pool = pool
10
11