GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 0bdc53...7603ec )
by Raphaël
01:23
created

Reference   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 85.71%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 13
ccs 6
cts 7
cp 0.8571
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 3 1
A __init__() 0 4 2
1 1
from pyjection.helper import get_service_subject_identifier
2
3
4 1
class Reference(object):
5
    """
6
    Base class used when a service needs to register a dependency to another service
7
    """
8
    
9 1
    def __init__(self, name):
10 1
        self._name = name
11 1
        if isinstance(name, str) is False:
12
            self._name = get_service_subject_identifier(name)
13
14 1
    @property
15
    def name(self):
16
        return self._name
17