@staticmethod
def transform(rule, target):
    """
        The transform rule produces different values based on the target's
        value.
        """
    return rule['transform'][getattr(target, rule['from'])]
