Class: Eson::Search::QueryString
- Inherits:
-
Object
- Object
- Eson::Search::QueryString
- Includes:
- Query
- Defined in:
- lib/eson/search/query_string.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ QueryString
constructor
A new instance of QueryString.
-
#query_string { ... } ⇒ self
Generates a ‘query_string` query in a query context.
Methods included from Query
Constructor Details
#initialize(options = {}) ⇒ QueryString
Returns a new instance of QueryString.
11 12 13 14 15 16 17 |
# File 'lib/eson/search/query_string.rb', line 11 def initialize( = {}) if Hash === self. = else self. = {:query => .to_s } end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Eson::Search::Query
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
9 10 11 |
# File 'lib/eson/search/query_string.rb', line 9 def @options end |
Instance Method Details
#query_string { ... } ⇒ self
7 |
# File 'lib/eson/search/query_string.rb', line 7 short_name :query_string |