Class: Sunspot::Query::FieldList
- Inherits:
-
Object
- Object
- Sunspot::Query::FieldList
- 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
-
#initialize(list) ⇒ FieldList
constructor
A new instance of FieldList.
- #to_params ⇒ Object
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_params ⇒ Object
10 11 12 |
# File 'lib/sunspot/query/field_list.rb', line 10 def to_params { :fl => @list } end |