Renamed <object>._trovebox to <object>._client, to match API classes.
Changed _type to a class attribute.
This commit is contained in:
parent
3cfc090dd0
commit
7a7b43afc7
6 changed files with 66 additions and 67 deletions
|
@ -3,11 +3,11 @@ Base object supporting the storage of custom fields as attributes
|
|||
"""
|
||||
class TroveboxObject(object):
|
||||
""" Base object supporting the storage of custom fields as attributes """
|
||||
def __init__(self, trovebox, json_dict):
|
||||
self._type = "None"
|
||||
_type = "None"
|
||||
def __init__(self, client, json_dict):
|
||||
self.id = None
|
||||
self.name = None
|
||||
self._trovebox = trovebox
|
||||
self._client = client
|
||||
self._json_dict = json_dict
|
||||
self._set_fields(json_dict)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue