aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/core/resources/users/user.py
blob: 1399ff82cf73c291ae9a832900f87c5b1a5695cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env python
# -*- encoding: utf-8 -*-

from . import Resource
from pygithub3.models.users import User

__all__ = ('Get', 'Update')


class Get(Resource):

    model = User

    def validate(self):
        pass

    def set_uri(self):
        if self.user:
            return 'users/%s' % self.user
        else:
            return 'user'


class Update(Resource):
    pass