Class: BentoSearch::Results::Serialization::Date

Inherits:
Object
  • Object
show all
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