Class: Sunspot::IdField

Inherits:
Object
  • Object
show all
Defined in:
lib/sunspot/field.rb

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.instanceObject



195
196
197
# File 'lib/sunspot/field.rb', line 195

def instance
  @instance ||= new
end

Instance Method Details

#indexed_nameObject



200
201
202
# File 'lib/sunspot/field.rb', line 200

def indexed_name
  'id'
end

#to_indexed(id) ⇒ Object



204
205
206
# File 'lib/sunspot/field.rb', line 204

def to_indexed(id)
  id.to_s
end