Class: Sunspot::Query::ConstantFunctionQuery
- Inherits:
-
FunctionQuery
- Object
- FunctionQuery
- Sunspot::Query::ConstantFunctionQuery
- Defined in:
- sunspot/lib/sunspot/query/function_query.rb
Overview
Function query which represents a constant.
Instance Method Summary (collapse)
-
- (ConstantFunctionQuery) initialize(constant)
constructor
A new instance of ConstantFunctionQuery.
- - (Object) to_s
Constructor Details
- (ConstantFunctionQuery) initialize(constant)
A new instance of ConstantFunctionQuery
14 15 16 |
# File 'sunspot/lib/sunspot/query/function_query.rb', line 14 def initialize(constant) @constant = constant end |
Instance Method Details
- (Object) to_s
18 19 20 |
# File 'sunspot/lib/sunspot/query/function_query.rb', line 18 def to_s Type.to_literal(@constant) end |