lib/axiom/attribute/date.rb in axiom-0.1.0 vs lib/axiom/attribute/date.rb in axiom-0.1.1
- old
+ new
@@ -5,33 +5,19 @@
# Represents a Date value in a relation tuple
class Date < Object
include Comparable
- DEFAULT_RANGE = (::Date.new..::Date::Infinity.new).freeze
-
- # The Date primitive
+ # The attribute type
#
# @example
- # Date.primitive # => ::Date
+ # type = Axiom::Attribute::Date.type # => Axiom::Types::Date
#
- # @return [Class<::Date>]
+ # @return [Class<Types::Date>]
#
# @api public
- def self.primitive
- ::Date
- end
-
- # The Date range for a valid value
- #
- # @example
- # Date.range # => ::Date.new(*from)..::Date.new(*to)
- #
- # @return [Range<::Date>]
- #
- # @api public
- def range
- DEFAULT_RANGE
+ def self.type
+ Types::Date
end
end # class Date
end # class Attribute
end # module Axiom