hook/model.py
def from_yaml(cls, **kwargs):
        """Creates a new instance of a rule in relation to the config file.

        This updates the dictionary of the class with the added details, which
        allows for flexibility in the configuation file.

        Only called when parsing the default configuation file.
        """
        ret = cls()

        for k, v in kwargs.iteritems():
            ret.__dict__[k] = v
        return ret
def from_yaml(cls, **kwargs):
        ret = cls()

        for k, v in kwargs.iteritems():
            ret.__dict__[k] = v
        return ret
def from_yaml ( cls , * * kwargs ) : ret = cls ( ) for k , v in kwargs . iteritems ( ) : ret . __dict__ [ k ] = v return ret
Creates a new instance of a rule in relation to the config file.

        This updates the dictionary of the class with the added details, which
        allows for flexibility in the configuation file.

        Only called when parsing the default configuation file.
Creates a new instance of a rule in relation to the config file .