Passed
Push — master ( 7de6a0...d1a07e )
by Dave
58s
created

backend.fcmservice   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 20
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A InfrastructureService.__init__() 0 7 1
1
class ServiceName:
2
    '''names of infrastructure services'''
3
    messagebus = 'rabbit'
4
    cache = 'redis'
5
    database = 'mysql'
6
    email = 'gmail'
7
8
class InfrastructureService:
9
    '''configuration for a dependency'''
10
    name = ''
11
    connection = ''
12
    host = ''
13
    port = ''
14
    user = ''
15
    password = ''
16
    def __init__(self, name, connection, host, port, user, password):
17
        self.name = name
18
        self.connection = connection
19
        self.host = host
20
        self.port = port
21
        self.user = user
22
        self.password = password
23
24