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



269
270
271
# File 'lib/sunspot/field.rb', line 269

def instance
  @instance ||= new
end

Instance Method Details

#indexed_nameObject



274
275
276
# File 'lib/sunspot/field.rb', line 274

def indexed_name
  'id'
end

#to_indexed(id) ⇒ Object



278
279
280
# File 'lib/sunspot/field.rb', line 278

def to_indexed(id)
  id.to_s
end