Class: Eson::Search::Range
- Inherits:
-
Object
- Object
- Eson::Search::Range
- Defined in:
- lib/eson/search/range.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
Attributes included from Facet
Instance Method Summary collapse
-
#initialize(field, *options) ⇒ Range
constructor
A new instance of Range.
- #to_query_hash ⇒ Object
Methods included from Facet
included, #method_missing, #param, #scope
Methods included from Filter
Methods included from Query
Constructor Details
#initialize(field, *options) ⇒ Range
Returns a new instance of Range.
17 18 19 |
# File 'lib/eson/search/range.rb', line 17 def initialize(field, *) self.field = QueryField.new(field, *) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Eson::Search::Facet
Instance Attribute Details
#field ⇒ Object
Returns the value of attribute field.
15 16 17 |
# File 'lib/eson/search/range.rb', line 15 def field @field end |
Instance Method Details
#to_query_hash ⇒ Object
21 22 23 |
# File 'lib/eson/search/range.rb', line 21 def to_query_hash {name => field.to_query_hash} end |