Class: RocketAMF::Values::TypedHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/rocketamf/values/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

Returns a new instance of TypedHash.



8
9
10
# File 'lib/rocketamf/values/typed_hash.rb', line 8

def initialize type
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/rocketamf/values/typed_hash.rb', line 6

def type
  @type
end