Class: Wukong::Processor::Reject

Inherits:
Filter show all
Defined in:
lib/wukong/widget/filters.rb

Overview

A widget useful for creating filters on the fly in a dataflow.

See Also:

Constant Summary

Constants inherited from Wukong::Processor

SerializerError

Instance Method Summary collapse

Methods inherited from Filter

#process, #reject?

Methods inherited from Wukong::Processor

configure, consumes, description, #expected_record_type, #expected_serialization, #finalize, #perform_action, #process, produces, #receive_action, #setup, #stop, valid_serializer?, validate_and_set_serialization

Methods included from Logging

included

Methods included from Hanuman::StageClassMethods

#builder, #label, #register, #set_builder

Instance Method Details

#select?(record) ⇒ true, false

Rejects the given record by delegating to the perform_action method.

Parameters:

  • record (Object)

Returns:

  • (true, false)

See Also:



369
370
371
# File 'lib/wukong/widget/filters.rb', line 369

def select?(record)
  not perform_action(record)
end