ObjectWrapper missing name.. OOps
This commit is contained in:
@@ -15,6 +15,10 @@ class ObjectWrapper:
|
||||
raise ValueError("Data dict was not an object dictionary.")
|
||||
self.obj_data = data
|
||||
|
||||
@property
|
||||
def name(self) -> Optional[str]:
|
||||
return self.obj_data['name']
|
||||
|
||||
@property
|
||||
def size(self) -> int:
|
||||
return len(self.obj_data['data'])
|
||||
|
||||
Reference in New Issue
Block a user