Class: RocketAMF::Values::TypedHash
- Inherits:
-
Hash
- Object
- Hash
- RocketAMF::Values::TypedHash
- 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
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type) ⇒ TypedHash
constructor
A new instance of TypedHash.
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
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/rocketamf/values/typed_hash.rb', line 6 def type @type end |