Class: Elasticquery::Filters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/elasticquery/filters/base.rb

Direct Known Subclasses

Exists, Range, Term, Terms

Instance Method Summary collapse

Instance Method Details

#dup_with(*args) ⇒ Object



19
20
21
# File 'lib/elasticquery/filters/base.rb', line 19

def dup_with(*args)
  self.class.new *args
end

#invalid?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/elasticquery/filters/base.rb', line 11

def invalid?
  !valid?
end

#to_not_hashObject



15
16
17
# File 'lib/elasticquery/filters/base.rb', line 15

def to_not_hash
  {not: {filter: to_hash}}
end

#valid?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/elasticquery/filters/base.rb', line 7

def valid?
  true
end