Class: Eson::Search::Exists
- Inherits:
-
FieldBased
- Object
- FieldBased
- Eson::Search::Exists
- Includes:
- Filter
- Defined in:
- lib/eson/search/exists.rb
Instance Attribute Summary
Attributes inherited from FieldBased
Instance Method Summary collapse
-
#exists { ... } ⇒ self
Generates a ‘exists` filter in a filter context.
- #to_query_hash ⇒ Object
Methods included from Filter
Methods inherited from FieldBased
Constructor Details
This class inherits a constructor from Eson::Search::FieldBased
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Eson::Search::Filter
Instance Method Details
#exists { ... } ⇒ self
7 |
# File 'lib/eson/search/exists.rb', line 7 short_name :exists |
#to_query_hash ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/eson/search/exists.rb', line 9 def to_query_hash if field {name => field.to_query_hash} else {name => } end end |