diff options
author | 2012-03-03 11:07:31 +0100 | |
---|---|---|
committer | 2012-03-03 11:07:31 +0100 | |
commit | 221aae624d8a32e801268d2ea5866e885bd3b042 (patch) | |
tree | 788fdb1cf95199bf9d6e7ee3429b3bcf73251942 /pygithub3/resources/repos.py | |
parent | Add Manifest (diff) | |
download | python-github3-221aae624d8a32e801268d2ea5866e885bd3b042.tar.xz python-github3-221aae624d8a32e801268d2ea5866e885bd3b042.zip |
Service repos done
+repos.hooks
Diffstat (limited to 'pygithub3/resources/repos.py')
-rw-r--r-- | pygithub3/resources/repos.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pygithub3/resources/repos.py b/pygithub3/resources/repos.py index 99a6d4b..9d8ebf6 100644 --- a/pygithub3/resources/repos.py +++ b/pygithub3/resources/repos.py @@ -115,3 +115,10 @@ class Download(Resource): 'Filename': self.name, 'AWSAccessKeyId': self.accesskeyid, 'Policy': self.policy, 'Signature': self.signature, 'Content-Type': self.mime_type}) + +class Hook(Resource): + + _dates = ('created_at', 'pushed_at') + + def __str__(self): + return '<Hook (%s)>' % getattr(self, 'name', '') |