diff options
author | 2012-02-04 02:30:52 +0100 | |
---|---|---|
committer | 2012-02-04 02:30:52 +0100 | |
commit | d61d25f7494142b22478326d2cecf6ff50067af8 (patch) | |
tree | 97dd8d02d07e3f5ae252ed92f3c67f7ba9e77e76 /pygithub3/core/resources/users/emails.py | |
parent | Fix parse_args (diff) | |
download | python-github3-d61d25f7494142b22478326d2cecf6ff50067af8.tar.xz python-github3-d61d25f7494142b22478326d2cecf6ff50067af8.zip |
Improve models
Now the models maps itself from json encoded
Then we can inherit it and change behaviour to use polymorphism into
resources ;)
Diffstat (limited to 'pygithub3/core/resources/users/emails.py')
-rw-r--r-- | pygithub3/core/resources/users/emails.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pygithub3/core/resources/users/emails.py b/pygithub3/core/resources/users/emails.py index 18d520c..9523977 100644 --- a/pygithub3/core/resources/users/emails.py +++ b/pygithub3/core/resources/users/emails.py @@ -2,8 +2,15 @@ # -*- encoding: utf-8 -*- from . import Resource -#from pygithub3.models. +from pygithub3.models.base import Raw class List(Resource): - pass + + model = Raw + + def validate(self): + pass + + def set_uri(self): + return 'user/emails' |