Class: Eson::Search::And
- Inherits:
-
Object
- Object
- Eson::Search::And
- Defined in:
- lib/eson/search/and.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Attributes included from Filters
Instance Method Summary collapse
-
#and { ... } ⇒ self
Generates a ‘and` filter in a filter context.
-
#initialize(options = {}) ⇒ And
constructor
A new instance of And.
- #to_query_hash ⇒ Object
Methods included from Filter
Methods included from Filters
Constructor Details
#initialize(options = {}) ⇒ And
Returns a new instance of And.
13 14 15 |
# File 'lib/eson/search/and.rb', line 13 def initialize( = {}) self. = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Eson::Search::Filter
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
11 12 13 |
# File 'lib/eson/search/and.rb', line 11 def @options end |
Instance Method Details
#and { ... } ⇒ self
9 |
# File 'lib/eson/search/and.rb', line 9 short_name 'and' |
#to_query_hash ⇒ Object
17 18 19 |
# File 'lib/eson/search/and.rb', line 17 def to_query_hash { name => filters.to_query_hash } end |