Completed
Push — master ( a9b8b6...971575 )
by Matěj
12s
created

nextcloud.api_wrappers.capabilities   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A Capabilities.get_capabilities() 0 3 1
1
from nextcloud.base import WithRequester
2
3
4
class Capabilities(WithRequester):
5
    API_URL = "/ocs/v1.php/cloud/capabilities"
6
    SUCCESS_CODE = 100
7
8
    def get_capabilities(self):
9
        """ Obtain capabilities provided by the Nextcloud server and its apps """
10
        return self.requester.get()
11