Class: Synapse::Serialization::SerializedMetadata

Inherits:
SerializedObject show all
Defined in:
lib/synapse/serialization/message/metadata.rb

Overview

Convenience implementation of serialized object containing metadata

Instance Attribute Summary

Attributes inherited from SerializedObject

#content, #content_type, #type

Instance Method Summary collapse

Methods inherited from SerializedObject

#==, #hash

Constructor Details

#initialize(content, content_type) ⇒ undefined

Parameters:

  • content (Object)
  • content_type (Class)


8
9
10
# File 'lib/synapse/serialization/message/metadata.rb', line 8

def initialize(content, content_type)
  super(content, content_type, SerializedType.new(Hash.to_s, nil))
end