class Dynamoid::TypeCasting::DateTypeCaster

Public Instance Methods

process(value) click to toggle source
# File lib/dynamoid/type_casting.rb, line 257
def process(value)
  if !value.respond_to?(:to_date)
    nil
  else
    begin
      value.to_date
    rescue StandardError
      nil
    end
  end
end