posty.model module¶
-
class
posty.model.
Model
(payload, config=None)[source]¶ Bases:
posty.model.ABC
,_abcoll.MutableMapping
Base class for objects representing things stored as YAML, such as a Post or a Page
Parameters: - payload – A dict representing the backing payload for this object
- config – A Config object
-
as_dict
()[source]¶ Return a true dict representation of this object, suitable for serialization into JSON or YAML