class Gearbox::Types::Date
A {Gearbox::Type} for Date
values. Values will be associated with the ‘XSD.date` type.
A {Gearbox::Resource} property can reference this type as ‘Gearbox::Types::Date`, `Date`, or `XSD.Date`.
Public Class Methods
serialize(value)
click to toggle source
# File lib/gearbox/types/date.rb, line 20 def self.serialize(value) RDF::Literal::Date.new(value) end
unserialize(value)
click to toggle source
# File lib/gearbox/types/date.rb, line 16 def self.unserialize(value) value.object end