dragonfly_uwg.properties.story module¶
Story UWG Properties.
- class dragonfly_uwg.properties.story.StoryUWGProperties(host)[source]¶
Bases:
object
UWG Properties for Dragonfly Story.
- Parameters:
host – A dragonfly_core Story object that hosts these properties.
- Properties:
host
- apply_properties_from_dict(abridged_data)[source]¶
Apply properties from a StoryUWGPropertiesAbridged dictionary.
- Parameters:
abridged_data – A StoryUWGPropertiesAbridged dictionary (typically coming from a Model).
- duplicate(new_host=None)[source]¶
Get a copy of this object.
- new_host: A new Story object that hosts these properties.
If None, the properties will be duplicated with the same host.
- classmethod from_dict(data, host)[source]¶
Create StoryUWGProperties from a dictionary.
Note that the dictionary must be a non-abridged version for this classmethod to work.
- Parameters:
data – A dictionary representation of StoryUWGProperties.
host – A Story object that hosts these properties.
- to_dict(abridged=False)[source]¶
Return Story UWG properties as a dictionary.
- Parameters:
abridged – Boolean for whether the full dictionary of the Story should be written (False) or just the identifier of the the individual properties (True). Default: False.
- property host¶
Get the Story object hosting these properties.