models.preferences module

class models.preferences.Preferences(locale=None)[source]

Bases: object

Implementation of the ‘Preferences’ model.

TODO: type model description here.

Attributes:
locale (string): Locale reflects the language settings of the user.

Populate using the user preferences stored in Scribe for the user wherever needed.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.