Class: Eson::Search::TopChildren
- Inherits:
-
Object
- Object
- Eson::Search::TopChildren
- Includes:
- Filter, Query, QueryGroup
- Defined in:
- lib/eson/search/top_children.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
-
#initialize(type, options = {}) ⇒ TopChildren
constructor
A new instance of TopChildren.
- #to_query_hash ⇒ Object
- #top_children ⇒ 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 = {}) ⇒ TopChildren
Returns a new instance of TopChildren.
14 15 16 |
# File 'lib/eson/search/top_children.rb', line 14 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.
12 13 14 |
# File 'lib/eson/search/top_children.rb', line 12 def @options end |
Instance Method Details
#to_query_hash ⇒ Object
18 19 20 21 22 |
# File 'lib/eson/search/top_children.rb', line 18 def to_query_hash { name => {:query => super}.merge() } end |
#top_children { ... } ⇒ self #top_children { ... } ⇒ self
10 |
# File 'lib/eson/search/top_children.rb', line 10 short_name :top_children |