MetaData«
MetaData (StorageAdapter)
«
Main MetaData class used to manage all meta data associated with a post.
Attributes:
Name | Type | Description |
---|---|---|
storage_proxy |
StorageProxy |
Storage proxy used to communicate with storage backend. |
id |
int |
ID of the associated post. |
from_json(storage_proxy, meta_dict)
staticmethod
«
Build new MetaData object from JSON object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
meta_dict |
dict |
New meta data used to create new object, must contain |
required |
Returns:
Type | Description |
---|---|
MetaData |
New MetaData object created |
save(self)
«
Save the meta data to disk.
Returns:
Type | Description |
---|---|
None |
Nothing returned |
to_json(self)
«
Get JSON representation of the meta data.
Returns:
Type | Description |
---|---|
dict |
JSON representation of the meta data. |
update(self, meta_dict)
«
Update meta data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
meta_dict |
dict |
New meta data used to update old meta data object. |
required |
Returns:
Type | Description |
---|---|
None |
Nothing returned |