docs: def all(cls, include_deactivated=False):
          """
          Get all resources
          :param include_deactivated: Include deactivated resources in response
  
          :returns: list of Document instances
          :raises: SocketError, CouchException
          """
          if include_deactivated:
              resources = yield cls.view.get(include_docs=True)
          else:
              resources = yield cls.active_view.get(include_docs=True)
          raise Return([cls(**resource['doc']) for resource in resources['rows']])