Passed
Branch test (567fee)
by Alexis
01:21
created

SupportBee   A

Complexity

Total Complexity 13

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 48
dl 0
loc 61
rs 10
c 0
b 0
f 0
wmc 13

13 Methods

Rating   Name   Duplication   Size   Complexity  
A SupportBee.users() 0 3 1
A SupportBee.reports() 0 3 1
A SupportBee.filters() 0 3 1
A SupportBee.comments() 0 3 1
A SupportBee.attachments() 0 3 1
A SupportBee.tickets() 0 3 1
A SupportBee.__init__() 0 2 1
A SupportBee.emails() 0 3 1
A SupportBee.replies() 0 3 1
A SupportBee.customers_groups() 0 3 1
A SupportBee.teams() 0 3 1
A SupportBee.labels() 0 3 1
A SupportBee.snippets() 0 3 1
1
from base import *
2
from comments import *
3
from customer_groups import *
4
from divers import *
5
from replies import *
6
from teams import *
7
from tickets import *
8
from users import * 
9
10
class SupportBee:
11
    def __init__(self, token, company_url):
12
        self.BASE_URL = company_url + "{url}?auth_token=" + token
13
14
    @property
15
    def tickets(self):
16
        return Tickets(self)
17
18
    @property
19
    def replies(self):
20
        return Replies(self)
21
22
    @property
23
    def comments(self):
24
        return Comments(self)
25
26
    @property
27
    def teams(self):
28
        return Teams(self)
29
30
    @property
31
    def users(self):
32
        return Users(self)
33
34
    @property
35
    def customers_groups(self):
36
        return CustomerGroups(self)
37
38
    @property
39
    def attachments(self):
40
        return Attachments(self)
41
42
    @property
43
    def labels(self):
44
        return Labels(self)
45
46
    @property
47
    def emails(self):
48
        return Emails(self)
49
50
    @property
51
    def filters(self):
52
        return Filters(self)
53
54
    @property
55
    def snippets(self):
56
        return Snippets(self)
57
58
    @property
59
    def reports(self):
60
        return Reports(self)
61