Source code for boxsdk.object.api_json_object

# coding: utf-8

from __future__ import unicode_literals, absolute_import

from collections import Mapping
from abc import ABCMeta

from .base_api_json_object import BaseAPIJSONObject, BaseAPIJSONObjectMeta
from ..util.compat import with_metaclass

[docs]class APIJSONObjectMeta(BaseAPIJSONObjectMeta, ABCMeta): """ Avoid conflicting metaclass definitions for APIJSONObject. """ pass
[docs]class APIJSONObject(with_metaclass(APIJSONObjectMeta, BaseAPIJSONObject, Mapping)): """Class representing objects that are not part of the REST API.""" def __len__(self): return len(self._response_object)