Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (24 sloc) 658 Bytes
from __future__ import absolute_import
from . import base
from . import links
class Org(links.LinkedResource):
def __repr__(self):
return "<Org: %s>" %
class OrgManager(base.Manager):
resource_class = Org
def all(self):
Get a list of all orgs.
:rtype: list of org instances.
return self._list('/orgs/')
def get(self, resource):
Get an individual org.
:param resource: The org instance or its ID.
:rtype: A list of org instances.
return self._get('/orgs/%s/' % base.getid(resource))