Class: SunspotCell::Type::AttachmentType

Inherits:
Sunspot::Type::AbstractType
  • Object
show all
Defined in:
lib/sunspot_cell/type.rb

Instance Method Summary collapse

Instance Method Details

#cast(text) ⇒ Object



13
14
15
# File 'lib/sunspot_cell/type.rb', line 13

def cast(text)
  text
end

#indexed_name(name) ⇒ Object



5
6
7
# File 'lib/sunspot_cell/type.rb', line 5

def indexed_name(name)
  "#{name}_attachment"
end

#to_indexed(value) ⇒ Object



9
10
11
# File 'lib/sunspot_cell/type.rb', line 9

def to_indexed(value)
  value if value
end