Class: Eson::Search::CustomScore
- Inherits:
-
Object
- Object
- Eson::Search::CustomScore
- Defined in:
- lib/eson/search/custom_score.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Attributes included from Queries
Instance Method Summary collapse
-
#custom_score { ... } ⇒ self
Generates a ‘custom_score` query in a query context.
-
#initialize(options = {}) ⇒ CustomScore
constructor
A new instance of CustomScore.
Methods included from Query
Methods included from Queries
#queries?, register, #to_query_hash
Constructor Details
#initialize(options = {}) ⇒ CustomScore
Returns a new instance of CustomScore.
13 14 15 |
# File 'lib/eson/search/custom_score.rb', line 13 def initialize( = {}) self. = 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.
11 12 13 |
# File 'lib/eson/search/custom_score.rb', line 11 def @options end |
Instance Method Details
#custom_score { ... } ⇒ self
9 |
# File 'lib/eson/search/custom_score.rb', line 9 short_name :custom_score |