Class: Sunspot::Query::FieldFunctionQuery

Inherits:
FunctionQuery show all
Defined in:
lib/sunspot/query/function_query.rb

Overview

Function query which represents a field.

Instance Method Summary collapse

Constructor Details

#initialize(field) ⇒ FieldFunctionQuery

Returns a new instance of FieldFunctionQuery.



27
28
29
# File 'lib/sunspot/query/function_query.rb', line 27

def initialize(field)
  @field = field
end

Instance Method Details

#to_sObject



31
32
33
# File 'lib/sunspot/query/function_query.rb', line 31

def to_s
  "#{escape(@field.indexed_name)}"
end