Class: Synapse::Serialization::OjSerializer

Inherits:
Serializer
  • Object
show all
Defined in:
lib/synapse/serialization/serializer/oj.rb

Overview

Implementation of a serializer that uses the Optimized JSON (Oj) marshaling library

Instance Attribute Summary collapse

Attributes inherited from Serializer

#converter_factory, #revision_resolver

Method Summary

Methods inherited from Serializer

#can_serialize_to?, #class_for, #deserialize, #initialize, #serialize, #type_for

Constructor Details

This class inherits a constructor from Synapse::Serialization::Serializer

Instance Attribute Details

#deserialize_optionsHash

Returns Options that will be passed to the Oj load method.

Returns:

  • (Hash)

    Options that will be passed to the Oj load method



11
12
13
# File 'lib/synapse/serialization/serializer/oj.rb', line 11

def deserialize_options
  @deserialize_options
end

#serialize_optionsHash

Returns Options that will be passed to the Oj dump method.

Returns:

  • (Hash)

    Options that will be passed to the Oj dump method



8
9
10
# File 'lib/synapse/serialization/serializer/oj.rb', line 8

def serialize_options
  @serialize_options
end