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