Class: MmEsSearch::Api::Facet::StatisticalFacetResult
- Inherits:
-
Object
- Object
- MmEsSearch::Api::Facet::StatisticalFacetResult
- Includes:
- MongoMapper::EmbeddedDocument
- Defined in:
- lib/mm_es_search/api/facet/statistical_facet_result.rb
Instance Method Summary collapse
- #attributes(*args) ⇒ Object (also: #to_mongo)
Instance Method Details
#attributes(*args) ⇒ Object Also known as: to_mongo
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/mm_es_search/api/facet/statistical_facet_result.rb', line 19 def attributes(*args) attr = super attr.each_with_object({}) do |(key, value), hsh| hsh[key] = case value when ActiveSupport::TimeWithZone value.utc.to_time else value end end end |