Class: EventQ::SerializationProviders::JRuby::Oj::TimeWriter
- Inherits:
-
AttributeWriter
- Object
- AttributeWriter
- EventQ::SerializationProviders::JRuby::Oj::TimeWriter
- Defined in:
- lib/eventq_base/serialization_providers/jruby/oj/time_writer.rb
Instance Method Summary collapse
Methods inherited from AttributeWriter
Instance Method Details
#exec(obj) ⇒ Object
9 10 11 12 13 |
# File 'lib/eventq_base/serialization_providers/jruby/oj/time_writer.rb', line 9 def exec(obj) { '^t': obj.to_f } end |
#valid?(obj) ⇒ Boolean
6 7 8 |
# File 'lib/eventq_base/serialization_providers/jruby/oj/time_writer.rb', line 6 def valid?(obj) obj.is_a?(Time) end |