aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/resources/repos.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-03-03 11:07:31 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-03-03 11:07:31 +0100
commit221aae624d8a32e801268d2ea5866e885bd3b042 (patch)
tree788fdb1cf95199bf9d6e7ee3429b3bcf73251942 /pygithub3/resources/repos.py
parentAdd Manifest (diff)
downloadpython-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.py7
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', '')