From 221aae624d8a32e801268d2ea5866e885bd3b042 Mon Sep 17 00:00:00 2001 From: David Medina Date: Sat, 3 Mar 2012 11:07:31 +0100 Subject: Service repos done +repos.hooks --- pygithub3/resources/repos.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pygithub3/resources/repos.py') 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 '' % getattr(self, 'name', '') -- cgit v1.2.3-59-g8ed1b