Class: RubySol::Values::TypedHash

Inherits:
Hash
  • Object
show all
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

Instance Method Summary collapse

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

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/ruby_sol/class_mapping.rb', line 8

def type
  @type
end