Class: EventQ::SerializationProviders::JRuby::Oj::Serializer

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

Instance Method Summary collapse

Instance Method Details

#dump(obj) ⇒ Object



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

def dump(obj)
  JSON.dump(AttributeWriter.exec(obj))
end

#load(json) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/eventq_base/serialization_providers/jruby/oj/serializer.rb', line 10

def load(json)
  raise NotImplementedError.new("[#{self.class}] - #load method has not yet been implemented.")
end