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:



56
57
58
# File 'lib/sunspot/type.rb', line 56

def cast(string) #:nodoc:
  string
end

.indexed_name(name) ⇒ Object

:nodoc:



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

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

.to_indexed(value) ⇒ Object

:nodoc:



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

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