Class: Sunspot::Field::DynamicFieldInstance
- Inherits:
-
Object
- Object
- Sunspot::Field::DynamicFieldInstance
- Includes:
- FieldInstance
- Defined in:
- lib/sunspot/field.rb
Overview
This class represents actual dynamic fields as they are indexed in Solr. Thus, they have knowledge of the base name and dynamic name, type, etc.
Instance Method Summary collapse
-
#initialize(base_name, dynamic_name, type, data_extractor, multiple) ⇒ DynamicFieldInstance
constructor
A new instance of DynamicFieldInstance.
Methods included from FieldInstance
#cast, #indexed_name, #to_indexed
Constructor Details
#initialize(base_name, dynamic_name, type, data_extractor, multiple) ⇒ DynamicFieldInstance
Returns a new instance of DynamicFieldInstance.
222 223 224 225 |
# File 'lib/sunspot/field.rb', line 222 def initialize(base_name, dynamic_name, type, data_extractor, multiple) @base_name, @dynamic_name, @type, @data_extractor, @multiple = base_name, dynamic_name, type, data_extractor, multiple end |