class Synapse::Serialization::SerializedObject
Attributes
content[R]
@return [Object]
content_type[R]
@return [Class]
type[R]
@return [SerializedType]
Public Class Methods
new(content, content_type, type)
click to toggle source
@param [Object] content @param [Class] content_type
@param [SerializedType] type @return [undefined]
# File lib/synapse/serialization/serialized_object.rb, line 17 def initialize(content, content_type, type) @content = content @content_type = content_type @type = type end
Public Instance Methods
==(other)
click to toggle source
# File lib/synapse/serialization/serialized_object.rb, line 23 def ==(other) self.class === other && other.content == @content && other.content_type == @content_type && other.type == @type end
Also aliased as: eql?
hash()
click to toggle source
# File lib/synapse/serialization/serialized_object.rb, line 32 def hash @content.hash ^ @content_type.hash ^ @type.hash end