Sha256: bcb1e7f568b5072429086d3d66f2ee6ca363e2ec7bc83ca443d082a3a56c4e0f

Contents?: true

Size: 357 Bytes

Versions: 4

Compression:

Stored size: 357 Bytes

Contents

module Compel
  module Builder

    class DateTime < Schema

      include CommonValue

      def initialize
        super(Coercion::DateTime)
      end

      def format(value, options = {})
        build_option :format, value, options
      end

      def iso8601(options = {})
        build_option :format, '%FT%T', options
      end

    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
compel-0.5.1 lib/compel/builder/datetime.rb
compel-0.5.0 lib/compel/builder/datetime.rb
compel-0.4.3 lib/compel/builder/datetime.rb
compel-0.4.2 lib/compel/builder/datetime.rb