Sha256: e786d74b69a882cbea83233226f90bbb214ec881cdc3e8c672f09b4e75acd1db

Contents?: true

Size: 303 Bytes

Versions: 7

Compression:

Stored size: 303 Bytes

Contents

module Avromatic
  module Model
    module LogicalTypes

      LOGICAL_TYPE_MAP = {
        'date' => Date,
        'timestamp-micros' => Time,
        'timestamp-millis' => Time
      }.freeze

      def self.value_class(logical_type)
        LOGICAL_TYPE_MAP[logical_type]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
avromatic-0.9.0.rc6 lib/avromatic/model/logical_types.rb
avromatic-0.9.0.rc4 lib/avromatic/model/logical_types.rb
avromatic-0.9.0.rc3 lib/avromatic/model/logical_types.rb
avromatic-0.9.0.rc2 lib/avromatic/model/logical_types.rb
avromatic-0.9.0.rc1 lib/avromatic/model/logical_types.rb
avromatic-0.9.0.rc0 lib/avromatic/model/logical_types.rb
avromatic-0.8.0 lib/avromatic/model/logical_types.rb