Class: Elasticquery::Filters::Base
- Inherits:
-
Object
- Object
- Elasticquery::Filters::Base
show all
- Defined in:
- lib/elasticquery/filters/base.rb
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
11
12
13
|
# File 'lib/elasticquery/filters/base.rb', line 11
def invalid?
!valid?
end
|
#to_not_hash ⇒ Object
15
16
17
|
# File 'lib/elasticquery/filters/base.rb', line 15
def to_not_hash
{not: {filter: to_hash}}
end
|
#valid? ⇒ Boolean
7
8
9
|
# File 'lib/elasticquery/filters/base.rb', line 7
def valid?
true
end
|