kuon.bitskins.api.interfaces.user   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 62.5%

Importance

Changes 0
Metric Value
wmc 2
eloc 9
dl 0
loc 27
ccs 5
cts 8
cp 0.625
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A IUser.get_account_balance() 0 9 1
A IUser.__init__() 0 7 1
1
#!/usr/bin/python
2
# -*- coding: utf-8 -*-
3 1
from kuon.api_response import APIResponse
4 1
from kuon.bitskins import BitSkins
5
6
7 1
class IUser(BitSkins):
8
    """Implementation of the API methods related to the user on BitSkins"""
9
10 1
    def __init__(self, *args, **kwargs) -> None:
11
        """Initializing function
12
13
        :type args: list
14
        :type kwargs: dict
15
        """
16
        super().__init__(*args, **kwargs)
17
18 1
    def get_account_balance(self) -> APIResponse:
19
        """GetAccountBalance v1 implementation
20
        https://bitskins.com/api/#get_account_balance
21
22
        :return:
23
        """
24
        api_url = "https://bitskins.com/api/v1/get_account_balance/"
25
26
        return self.api_request(api_url=api_url)
27