diff options
author | 2011-11-29 23:24:15 +0100 | |
---|---|---|
committer | 2011-11-29 23:29:01 +0100 | |
commit | 1b310d37945c6f846f2145817353d9d03916a2ae (patch) | |
tree | 34c3af7be290a0b7ec823c7bacd40d7185186898 /github3/models/gists.py | |
parent | pep8 (diff) | |
download | python-github3-1b310d37945c6f846f2145817353d9d03916a2ae.tar.xz python-github3-1b310d37945c6f846f2145817353d9d03916a2ae.zip |
GistComment model
Diffstat (limited to 'github3/models/gists.py')
-rw-r--r-- | github3/models/gists.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/github3/models/gists.py b/github3/models/gists.py index 13f3a62..8979dbb 100644 --- a/github3/models/gists.py +++ b/github3/models/gists.py @@ -4,6 +4,23 @@ from .base import BaseResource from .user import User + +class GistComment(BaseResource): + """ Gist comment """ + + @classmethod + def idl(self): + return { + 'strs': ['url', 'body', 'body_text', 'body_html'], + 'ints': ['id'], + 'maps': {'user': User}, + 'dates': ['created_at'], + } + + def __repr__(self): + return '<GistComment %s>' % self.user.login + + class File(BaseResource): """ File model """ |