Sha256: 425f3cbaff59fff436d9054a1a245b8a4eae7b3a0f1f54fdbe7fef09156a38d5

Contents?: true

Size: 186 Bytes

Versions: 10

Compression:

Stored size: 186 Bytes

Contents

module ActiveRemote
  module Typecasting
    class DateTimeTypecaster
      def self.call(value)
        value.to_datetime if value.respond_to?(:to_datetime)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
active_remote-3.1.2.pre lib/active_remote/typecasting/date_time_typecaster.rb
active_remote-3.1.1 lib/active_remote/typecasting/date_time_typecaster.rb
active_remote-3.1.0 lib/active_remote/typecasting/date_time_typecaster.rb
active_remote-3.0.0 lib/active_remote/typecasting/date_time_typecaster.rb
active_remote-3.0.0.pre1 lib/active_remote/typecasting/date_time_typecaster.rb
active_remote-2.4.0 lib/active_remote/typecasting/date_time_typecaster.rb
active_remote-2.3.5 lib/active_remote/typecasting/date_time_typecaster.rb
active_remote-2.3.4 lib/active_remote/typecasting/date_time_typecaster.rb
active_remote-2.3.3 lib/active_remote/typecasting/date_time_typecaster.rb
active_remote-2.3.3.pre lib/active_remote/typecasting/date_time_typecaster.rb