code: def set_rule(self, name, properties):
          
          self._rule_attrs.append(name)
          setattr(self, name, properties)
docs: Set a rules as object attribute.
  
          Arguments:
              name (string): Rule name to set as attribute name.
              properties (dict): Dictionnary of properties.