From 8a723b0815841ea9e34c148b06c0fa6529b90e33 Mon Sep 17 00:00:00 2001 From: David Medina Date: Sat, 4 Feb 2012 19:07:23 +0100 Subject: Renaming (What I was thinking?) resources => ghrequests models => resources + Also it's near to complete user service --- pygithub3/resources/users.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pygithub3/resources/users.py (limited to 'pygithub3/resources/users.py') 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 '' % getattr(self, 'name', '') + + +class User(Resource): + """ """ + + _maps = {'plan': Plan} + _dates = ('created_at', ) + + def __str__(self): + return '' % getattr(self, 'login', '') -- cgit v1.2.3-59-g8ed1b