Class: Eson::Search::FQuery
- Inherits:
-
Object
- Object
- Eson::Search::FQuery
- Defined in:
- lib/eson/search/fquery.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Attributes included from Queries
Instance Method Summary collapse
-
#fquery { ... } ⇒ self
Generates a ‘fquery` filter in a filter context.
-
#initialize(options = {}) ⇒ FQuery
constructor
A new instance of FQuery.
- #to_query_hash ⇒ Object
Methods included from Queries
Methods included from Filter
Constructor Details
#initialize(options = {}) ⇒ FQuery
Returns a new instance of FQuery.
13 14 15 |
# File 'lib/eson/search/fquery.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/fquery.rb', line 11 def @options end |
Instance Method Details
#fquery { ... } ⇒ self
9 |
# File 'lib/eson/search/fquery.rb', line 9 short_name :fquery |
#to_query_hash ⇒ Object
17 18 19 |
# File 'lib/eson/search/fquery.rb', line 17 def to_query_hash {name => {:query => queries.to_query_hash}.merge!()} end |