Class: Sunspot::TypeField

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



179
180
181
# File 'lib/sunspot/field.rb', line 179

def instance
  @instance ||= new
end

Instance Method Details

#indexed_nameObject



184
185
186
# File 'lib/sunspot/field.rb', line 184

def indexed_name
  'type'
end

#to_indexed(clazz) ⇒ Object



188
189
190
# File 'lib/sunspot/field.rb', line 188

def to_indexed(clazz)
  clazz.name
end