def conditions_match?(data)
      if conditions
        conditions.all? {|(key, value)| data[key] == value}
      else
        true
      end
    end
def conditions_match?(data)
      if conditions
        conditions.all? {|(key, value)| data[key] == value}
      else
        true
      end
    end
def conditions_match? ( data ) if conditions conditions . all? { | ( key , value ) | data [ key ] == value } else true end end
Determines whether the conditions configured for this handler match the
 event data
Determines whether the conditions configured for this handler match the event data