Class: Eson::Search::HasChild
- Inherits:
-
Object
- Object
- Eson::Search::HasChild
- Includes:
- Filter, Query, QueryGroup
- Defined in:
- lib/eson/search/has_child.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Attributes included from Parametrized
Attributes included from Queries
Attributes included from Filters
Instance Method Summary collapse
- #has_child ⇒ Object
-
#initialize(type, options = {}) ⇒ HasChild
constructor
A new instance of HasChild.
- #to_query_hash ⇒ Object
Methods included from QueryGroup
Methods included from Parametrized
Methods included from Queries
Methods included from Filters
Methods included from Filter
Methods included from Query
Constructor Details
#initialize(type, options = {}) ⇒ HasChild
Returns a new instance of HasChild.
15 16 17 |
# File 'lib/eson/search/has_child.rb', line 15 def initialize(type, = {}) self. = .merge(:type => type) 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.
13 14 15 |
# File 'lib/eson/search/has_child.rb', line 13 def @options end |
Instance Method Details
#has_child { ... } ⇒ self #has_child { ... } ⇒ self
11 |
# File 'lib/eson/search/has_child.rb', line 11 short_name :has_child |
#to_query_hash ⇒ Object
19 20 21 22 23 |
# File 'lib/eson/search/has_child.rb', line 19 def to_query_hash { name => .merge(:query => super) } end |