diff options
Diffstat (limited to 'pygithub3/resources/users.py')
-rw-r--r-- | pygithub3/resources/users.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pygithub3/resources/users.py b/pygithub3/resources/users.py new file mode 100644 index 0000000..7e40025 --- /dev/null +++ b/pygithub3/resources/users.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*- + +from .base import Resource + +__all__ = ('Plan', 'User') + + +class Plan(Resource): + + def __str__(self): + return '<Plan (%s)>' % getattr(self, 'name', '') + + +class User(Resource): + """ """ + + _maps = {'plan': Plan} + _dates = ('created_at', ) + + def __str__(self): + return '<User (%s)>' % getattr(self, 'login', '') |