Class: BentoSearch::Results::Serialization::Date
- Inherits:
-
Object
- Object
- BentoSearch::Results::Serialization::Date
- Defined in:
- app/models/bento_search/results/serialization.rb
Class Method Summary collapse
Class Method Details
.dump(datetime) ⇒ Object
137 138 139 |
# File 'app/models/bento_search/results/serialization.rb', line 137 def self.dump(datetime) datetime.iso8601 end |
.load(str) ⇒ Object
140 141 142 |
# File 'app/models/bento_search/results/serialization.rb', line 140 def self.load(str) ::Date.iso8601(str) end |