# File lib/thinking_sphinx/facet.rb, line 79 def value(object, attribute_hash) attribute_value = attribute_hash['@groupby'] return translate(object, attribute_value) if translate? || float? case @property.type when :datetime Time.at(attribute_value) when :boolean attribute_value > 0 else attribute_value end end