Class: Sunspot::Type::ClassType

Inherits:
AbstractType show all
Defined in:
lib/sunspot/type.rb

Instance Method Summary collapse

Methods inherited from AbstractType

#accepts_dynamic?, #accepts_more_like_this?, #to_literal

Instance Method Details

#cast(string) ⇒ Object

:nodoc:



366
367
368
# File 'lib/sunspot/type.rb', line 366

def cast(string) #:nodoc:
  Sunspot::Util.full_const_get(string)
end

#indexed_name(name) ⇒ Object

:nodoc:



358
359
360
# File 'lib/sunspot/type.rb', line 358

def indexed_name(name) #:nodoc:
  'class_name'
end

#to_indexed(value) ⇒ Object

:nodoc:



362
363
364
# File 'lib/sunspot/type.rb', line 362

def to_indexed(value) #:nodoc:
  value.name
end