Module: ActiveJson::Filter

Extended by:
Filter
Included in:
Filter
Defined in:
lib/active_json/filter.rb

Constant Summary collapse

VALID_OPERATORS =
%w[== != <= >= < >].freeze

Instance Method Summary collapse

Instance Method Details

#new(args) ⇒ Object



7
8
9
10
11
# File 'lib/active_json/filter.rb', line 7

def new(args)
  attributes = process_args(args)
  values = attributes.map(&parse_values)
  filter_lambda(values)
end