Class: Dynamoid::TypeCasting::DateTypeCaster
- Defined in:
- lib/dynamoid/type_casting.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Dynamoid::TypeCasting::Base
Instance Method Details
#process(value) ⇒ Object
262 263 264 265 266 267 268 269 270 |
# File 'lib/dynamoid/type_casting.rb', line 262 def process(value) if value.respond_to?(:to_date) begin value.to_date rescue StandardError nil end end end |