Sha256: d5eb59b3e0eacd31100cb60c0e233e7969120626f37de09ff42aa0015be56c0d

Contents?: true

Size: 333 Bytes

Versions: 16

Compression:

Stored size: 333 Bytes

Contents

# encoding: utf-8

module Axiom
  module Types

    # Represents a date type
    class Date < Object
      extend ValueComparable

      primitive       ::Date
      coercion_method :to_date

      minimum primitive.new(1, 1, 1)
      maximum primitive.new(9999, 12, 31)

    end # class Date
  end # module Types
end # module Axiom

Version data entries

16 entries across 14 versions & 4 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/axiom-types-0.1.1/lib/axiom/types/date.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/axiom-types-0.1.1/lib/axiom/types/date.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/axiom-types-0.1.1/lib/axiom/types/date.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/axiom-types-0.1.1/lib/axiom/types/date.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/axiom-types-0.1.1/lib/axiom/types/date.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/axiom-types-0.1.1/lib/axiom/types/date.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/axiom-types-0.1.1/lib/axiom/types/date.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/axiom-types-0.1.1/lib/axiom/types/date.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/axiom-types-0.1.1/lib/axiom/types/date.rb
axiom-types-0.1.1 lib/axiom/types/date.rb
axiom-types-0.1.0 lib/axiom/types/date.rb
axiom-types-0.0.5 lib/axiom/types/date.rb
axiom-types-0.0.4 lib/axiom/types/date.rb
axiom-types-0.0.3 lib/axiom/types/date.rb
axiom-types-0.0.2 lib/axiom/types/date.rb
axiom-types-0.0.1 lib/axiom/types/date.rb