Completed
Push — master ( bfd75d...9200b0 )
by Manas
01:53
created

GetUserAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %
Metric Value
dl 0
loc 5
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 1
1
from lib.base import BaseGithubAction
2
from lib.formatters import user_to_dict
3
4
__all__ = [
5
    'GetUserAction'
6
]
7
8
9
class GetUserAction(BaseGithubAction):
10
    def run(self, user):
11
        user = self._client.get_user(user)
12
        result = user_to_dict(user=user)
13
        return result
14