Class: RubySol::Values::TypedHash
- Inherits:
-
Hash
- Object
- Hash
- RubySol::Values::TypedHash
- Defined in:
- lib/ruby_sol/class_mapping.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.
10 11 12 |
# File 'lib/ruby_sol/class_mapping.rb', line 10 def initialize type @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/ruby_sol/class_mapping.rb', line 8 def type @type end |