Class: ThinkingSphinx::ClassFacet
- Inherits:
-
Facet
- Object
- Facet
- ThinkingSphinx::ClassFacet
show all
- Defined in:
- lib/thinking_sphinx/class_facet.rb
Instance Attribute Summary
Attributes inherited from Facet
#property
Instance Method Summary
collapse
Methods inherited from Facet
attribute_name_for, attribute_name_from_value, #initialize, name_for, #to_s, translate?, #translate?, #type
Instance Method Details
#attribute_name ⇒ Object
7
8
9
|
# File 'lib/thinking_sphinx/class_facet.rb', line 7
def attribute_name
"class_crc"
end
|
#name ⇒ Object
3
4
5
|
# File 'lib/thinking_sphinx/class_facet.rb', line 3
def name
:class
end
|
#value(object, attribute_value) ⇒ Object
11
12
13
|
# File 'lib/thinking_sphinx/class_facet.rb', line 11
def value(object, attribute_value)
object.class.name
end
|