aboutsummaryrefslogtreecommitdiffstats
path: root/github3/models/user.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2011-11-01 22:23:41 +0100
committerDavid Medina <davidmedina9@gmail.com>2011-11-01 22:23:41 +0100
commit81f483aabf6d40f7d3379fb2a85ecb6a5fd218fb (patch)
tree5a3a9a81072df4ec54e36d30f77559ce9d145bbe /github3/models/user.py
parentAdd get_bool request (diff)
downloadpython-github3-81f483aabf6d40f7d3379fb2a85ecb6a5fd218fb.tar.xz
python-github3-81f483aabf6d40f7d3379fb2a85ecb6a5fd218fb.zip
Complete AuthUser handler
Diffstat (limited to 'github3/models/user.py')
-rw-r--r--github3/models/user.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/github3/models/user.py b/github3/models/user.py
index 7c730f6..3f0efc4 100644
--- a/github3/models/user.py
+++ b/github3/models/user.py
@@ -14,6 +14,15 @@ class Plan(BaseResource):
def __repr__(self):
return '<Plan {0}>'.format(str(self.name))
+class Key(BaseResource):
+ """Github Key object model."""
+
+ _strs = ['url', 'title', 'key']
+ _ints = ['id']
+
+ def __repr__(self):
+ return '<Key {0}>'.format(str(self.title))
+
class User(BaseResource):
"""Github User object model."""