Class: Sunspot::IdField
- Inherits:
-
Object
- Object
- Sunspot::IdField
- Defined in:
- sunspot/lib/sunspot/field.rb
Overview
:nodoc:
Class Method Summary (collapse)
Instance Method Summary (collapse)
Class Method Details
+ (Object) instance
179 180 181 |
# File 'sunspot/lib/sunspot/field.rb', line 179 def instance @instance ||= new end |
Instance Method Details
- (Object) indexed_name
184 185 186 |
# File 'sunspot/lib/sunspot/field.rb', line 184 def indexed_name 'id' end |
- (Object) to_indexed(id)
188 189 190 |
# File 'sunspot/lib/sunspot/field.rb', line 188 def to_indexed(id) id.to_s end |