adding organization model and relevant helpers

This commit is contained in:
Rok Garbas
2011-08-24 05:19:28 +02:00
parent 4e1f7b2ad7
commit 27fec35b1f
2 changed files with 31 additions and 1 deletions
+3
View File
@@ -156,6 +156,9 @@ class Github(GithubCore):
"""Get the authenticated user."""
return self._get_resource(('repos', username, reponame), Repo)
def get_org(self, login):
"""Get organization."""
return self._get_resource(('orgs', login), Org)
class ResponseError(Exception):