Class: Sunspot::Query::FieldFunctionQuery
- Inherits:
-
FunctionQuery
- Object
- FunctionQuery
- Sunspot::Query::FieldFunctionQuery
- Defined in:
- sunspot/lib/sunspot/query/function_query.rb
Overview
Function query which represents a field.
Instance Method Summary (collapse)
-
- (FieldFunctionQuery) initialize(field)
constructor
A new instance of FieldFunctionQuery.
- - (Object) to_s
Constructor Details
- (FieldFunctionQuery) initialize(field)
A new instance of FieldFunctionQuery
27 28 29 |
# File 'sunspot/lib/sunspot/query/function_query.rb', line 27 def initialize(field) @field = field end |
Instance Method Details
- (Object) to_s
31 32 33 |
# File 'sunspot/lib/sunspot/query/function_query.rb', line 31 def to_s "#{escape(@field.indexed_name)}" end |