class EventQ::SerializationProviders::JRuby::Oj::DateWriter
Public Instance Methods
exec(obj)
click to toggle source
# File lib/eventq_base/serialization_providers/jruby/oj/date_writer.rb, line 9 def exec(obj) { '^O': 'Date', year: obj.year, month: obj.month, day: obj.day, start: obj.start } end
valid?(obj)
click to toggle source
# File lib/eventq_base/serialization_providers/jruby/oj/date_writer.rb, line 6 def valid?(obj) obj.is_a?(Date) && !obj.is_a?(DateTime) end