class Aliyun::Log::Record::TypeCasting::DateType
Public Instance Methods
cast(value)
click to toggle source
# File lib/aliyun/log/record/type_casting.rb, line 71 def cast(value) return nil unless value.respond_to?(:to_date) value.to_date end
dump(value)
click to toggle source
# File lib/aliyun/log/record/type_casting.rb, line 77 def dump(value) if value.respond_to?(:to_date) value.to_date.to_s else value.to_s end end