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

GetUserAction.run()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 4
rs 10
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