Method: Sunspot::Field#cast
- Defined in:
- lib/sunspot/field.rb
#cast(value) ⇒ Object
Cast the value into the appropriate Ruby class for the field’s type
Parameters
- value<String>
-
Solr’s representation of the value
Returns
- Object
-
The cast value
54 55 56 |
# File 'lib/sunspot/field.rb', line 54 def cast(value) @type.cast(value) end |