Module: Sunspot::Type::StringType

Defined in:
lib/sunspot/type.rb

Overview

The String type represents string data.

Class Method Summary collapse

Class Method Details

.cast(string) ⇒ Object

:nodoc:



52
53
54
# File 'lib/sunspot/type.rb', line 52

def cast(string) #:nodoc:
  string
end

.indexed_name(name) ⇒ Object

:nodoc:



44
45
46
# File 'lib/sunspot/type.rb', line 44

def indexed_name(name) #:nodoc:
"#{name}_s"
end

.to_indexed(value) ⇒ Object

:nodoc:



48
49
50
# File 'lib/sunspot/type.rb', line 48

def to_indexed(value) #:nodoc:
  value.to_s if value
end