Sha256: 63d2aa2c83fb99dda0d4705bdbe514cf57b2642929e8d45e08bdc319f419004f

Contents?: true

Size: 292 Bytes

Versions: 10

Compression:

Stored size: 292 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

10 entries across 10 versions & 1 rubygems

Version Path
attributor-5.0.2 lib/attributor/families/temporal.rb
attributor-5.0.1 lib/attributor/families/temporal.rb
attributor-5.0 lib/attributor/families/temporal.rb
attributor-4.2.0 lib/attributor/families/temporal.rb
attributor-4.1.0 lib/attributor/families/temporal.rb
attributor-4.0.1 lib/attributor/families/temporal.rb
attributor-4.0.0 lib/attributor/families/temporal.rb
attributor-3.0.1 lib/attributor/families/temporal.rb
attributor-3.0 lib/attributor/families/temporal.rb
attributor-2.6.1 lib/attributor/families/temporal.rb