def run(event)
      if conditions_match?(event.data)
        # Run the block for each individual result
        event.results.each do |args|
          begin
            @block.call(*args)
          rescue StandardError => ex
            logger.error(([ex.message] + ex.backtrace) * "\n")
          end
        end

        true
      else
        false
      end
    end
def run(event)
      if conditions_match?(event.data)
        # Run the block for each individual result
        event.results.each do |args|
          begin
            @block.call(*args)
          rescue StandardError => ex
            logger.error(([ex.message] + ex.backtrace) * "\n")
          end
        end

        true
      else
        false
      end
    end
Builds a new handler bound to the given event.

 @param [String] event The name of the event to bind to
 @param [Hash] options The configuration options
 @option options [Boolean] :once (false) Whether to only call the handler once
 @option options [Hash] :if (nil) Data that must be matched to run
 @raise [ArgumentError] if an invalid option is specified
 Runs this handler for each result from the given event.

 @param [Turntabler::Event] event The event being triggered
 @return [Boolean] +true+ if conditions were matched to run the handler, otherwise +false+