class Synapse::Serialization::OxSerializer
Implementation of a serializer that uses the Optimized XML (Ox) marshaling library
Attributes
serialize_options[RW]
@return [Hash] Options that will be passed to the Ox dump method
Protected Instance Methods
native_content_type()
click to toggle source
@return [Class]
# File lib/synapse/serialization/serializer/ox.rb, line 26 def native_content_type String end
perform_deserialize(content, type)
click to toggle source
@param [Object] content @param [Class] type @return [Object]
# File lib/synapse/serialization/serializer/ox.rb, line 21 def perform_deserialize(content, type) Ox.parse_obj content end
perform_serialize(content)
click to toggle source
@param [Object] content @return [Object]
# File lib/synapse/serialization/serializer/ox.rb, line 14 def perform_serialize(content) Ox.dump content, @serialize_options end