Sha256: db2533cf96c4999e034e1020e5d5d575d2030b680c669e3d34a4123d6f504a18

Contents?: true

Size: 341 Bytes

Versions: 5

Compression:

Stored size: 341 Bytes

Contents

# frozen_string_literal: true

module InferModel
  module Parsers
    Error = Class.new(StandardError)

    BY_TYPE = {
      boolean: Boolean,
      datetime: DateTime,
      decimal: Decimal,
      integer: Integer,
      json: JSON,
      time: Time,
      uuid: UUID,
      string: ->(*args, **_opts) { args[0] },
    }.freeze
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
infer_model-0.1.5 lib/infer_model/parsers.rb
infer_model-0.1.4 lib/infer_model/parsers.rb
infer_model-0.1.2 lib/infer_model/parsers.rb
infer_model-0.1.1 lib/infer_model/parsers.rb
infer_model-0.1.0 lib/infer_model/parsers.rb