Class: Sunspot::IdField
- Inherits:
-
Object
- Object
- Sunspot::IdField
- Defined in:
- lib/sunspot/field.rb
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.instance ⇒ Object
168 169 170 |
# File 'lib/sunspot/field.rb', line 168 def instance @instance ||= new end |
Instance Method Details
#indexed_name ⇒ Object
173 174 175 |
# File 'lib/sunspot/field.rb', line 173 def indexed_name 'id' end |
#to_indexed(id) ⇒ Object
177 178 179 |
# File 'lib/sunspot/field.rb', line 177 def to_indexed(id) id.to_s end |