diff options
Diffstat (limited to 'github3/models/gists.py')
-rw-r--r-- | github3/models/gists.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/github3/models/gists.py b/github3/models/gists.py index b317f57..13f3a62 100644 --- a/github3/models/gists.py +++ b/github3/models/gists.py @@ -17,6 +17,7 @@ class File(BaseResource): def __repr__(self): return '<File gist> %s' % self.filename + class GistFork(BaseResource): """ GistFork model """ @@ -31,6 +32,7 @@ class GistFork(BaseResource): def __repr__(self): return '<Gist fork> %s>' % self.user.login + class ChangeStatus(BaseResource): """ ChangeStatus model """ @@ -43,6 +45,7 @@ class ChangeStatus(BaseResource): def __repr__(self): return '<Gist history> change_status>' + class GistHistory(BaseResource): """ """ @@ -57,18 +60,21 @@ class GistHistory(BaseResource): def __repr__(self): return '<GistHistory %s/%s>' % (self.user, self.committed_at) + class Gist(BaseResource): """ """ @classmethod def idl(self): return { - 'strs': ['url', 'description', 'html_url', 'git_pull_url', 'git_push_url'], + 'strs': ['url', 'description', 'html_url', 'git_pull_url', + 'git_push_url'], 'ints': ['id', 'comments'], 'bools': ['public'], 'dates': ['created_at'], 'maps': {'user': User}, - 'collection_maps': {'files': File, 'forks': GistFork, 'history': GistHistory}, + 'collection_maps': {'files': File, 'forks': GistFork, + 'history': GistHistory}, } def __repr__(self): |