Class: RocketAMF::Types::TypedHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/rocketamf/types/typed_hash.rb

Overview

Hash-like object that can store a type string. Used to preserve type information for unmapped objects after deserialization.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ TypedHash

Methods



18
19
20
# File 'lib/rocketamf/types/typed_hash.rb', line 18

def initialize(type)
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Properties



12
13
14
# File 'lib/rocketamf/types/typed_hash.rb', line 12

def type
  @type
end