Skip to content

Commit 3e7b673

Browse files
kelseymorris95jmoldow
authored andcommitted
Expose response_object on BaseAPIJSONObject (#158)
1 parent 768efc0 commit 3e7b673

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

boxsdk/object/base_api_json_object.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# coding: utf-8
22

33
from __future__ import unicode_literals, absolute_import
4+
import copy
45
import six
56

67
from ..util.translator import Translator
@@ -61,3 +62,12 @@ def __repr__(self):
6162
def _description(self):
6263
"""Return a description of the object if one exists."""
6364
return ""
65+
66+
@property
67+
def response_object(self):
68+
"""
69+
Return the JSON object representing the object returned from a Box API request.
70+
:rtype:
71+
`dict`
72+
"""
73+
return copy.deepcopy(self._response_object)

0 commit comments

Comments
 (0)