Class: Daedal::Filters::BoolFilter

Inherits:
Filter
  • Object
show all
Defined in:
lib/daedal/filters/bool_filter.rb

Instance Method Summary collapse

Methods inherited from Filter

#to_json

Instance Method Details

#to_hashObject



10
11
12
# File 'lib/daedal/filters/bool_filter.rb', line 10

def to_hash
  {bool: {should: should.map {|f| f.to_hash}, must: must.map {|f| f.to_hash}, must_not: must_not.map {|f| f.to_hash}}}
end