Class: Sunspot::Query::FieldList

Inherits:
Object
  • Object
show all
Defined in:
lib/sunspot/query/field_list.rb

Overview

This DSL represents only fields that would come out of the results of the search type.

Instance Method Summary collapse

Constructor Details

#initialize(list) ⇒ FieldList

Returns a new instance of FieldList.



6
7
8
# File 'lib/sunspot/query/field_list.rb', line 6

def initialize(list)
  @list = list
end

Instance Method Details

#to_paramsObject



10
11
12
# File 'lib/sunspot/query/field_list.rb', line 10

def to_params
  { :fl => @list }
end