Sha256: 8cb02979e2aad4d3c206ca334a8a393065a06e0a51423c4402208dab906be786

Contents?: true

Size: 289 Bytes

Versions: 5

Compression:

Stored size: 289 Bytes

Contents

# Abstract type for the 'temporal' family

module Attributor
  class Temporal
    include Type

    def self.native_type
      raise NotImplementedError
    end

    def self.family
      'temporal'
    end

    def self.dump(value, **_opts)
      value && value.iso8601
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
attributor-5.4 lib/attributor/families/temporal.rb
attributor-5.3 lib/attributor/families/temporal.rb
attributor-5.2.1 lib/attributor/families/temporal.rb
attributor-5.2.0 lib/attributor/families/temporal.rb
attributor-5.1.0 lib/attributor/families/temporal.rb