Class: EventQ::SerializationProviders::JRuby::Oj::ValueWriter

Inherits:
AttributeWriter
  • Object
show all
Defined in:
lib/eventq_base/serialization_providers/jruby/oj/value_writer.rb

Instance Method Summary collapse

Methods inherited from AttributeWriter

descendants, exec

Instance Method Details

#exec(obj) ⇒ Object



9
10
11
# File 'lib/eventq_base/serialization_providers/jruby/oj/value_writer.rb', line 9

def exec(obj)
  obj
end

#valid?(obj) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/eventq_base/serialization_providers/jruby/oj/value_writer.rb', line 6

def valid?(obj)
  obj.is_a?(String) || obj.is_a?(Integer) || obj.is_a?(Float)
end