Class: Objective::Filters::BooleanFilter

Inherits:
Objective::Filter show all
Defined in:
lib/objective/filters/boolean_filter.rb

Constant Summary collapse

Options =
OpenStruct.new(
  nils: Objective::DENY,
  invalid: Objective::DENY,
  strict: false,
  coercion_map: {
    'true' => true,
    'false' => false,
    '1' => true,
    '0' => false
  }.freeze
)

Instance Attribute Summary

Attributes inherited from Objective::Filter

#key, #sub_filters

Method Summary

Methods inherited from Objective::Filter

#default, #default?, #dup, #feed, #feed_empty, #feed_invalid, #feed_nil, #feed_result, #handle_errors, inherited, #initialize, #options, #sub_filters_hash, #validate

Constructor Details

This class inherits a constructor from Objective::Filter