From d61d25f7494142b22478326d2cecf6ff50067af8 Mon Sep 17 00:00:00 2001 From: David Medina Date: Sat, 4 Feb 2012 02:30:52 +0100 Subject: Improve models Now the models maps itself from json encoded Then we can inherit it and change behaviour to use polymorphism into resources ;) --- pygithub3/core/resources/users/emails.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'pygithub3/core/resources') 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' -- cgit v1.2.3-59-g8ed1b