Class: Conglomerate::TreeDeserializer
- Inherits:
-
Object
- Object
- Conglomerate::TreeDeserializer
- Defined in:
- lib/conglomerate/tree_deserializer.rb
Constant Summary collapse
Instance Method Summary collapse
- #deserialize(item = object) ⇒ Object
-
#initialize(object) ⇒ TreeDeserializer
constructor
A new instance of TreeDeserializer.
Constructor Details
#initialize(object) ⇒ TreeDeserializer
Returns a new instance of TreeDeserializer.
7 8 9 |
# File 'lib/conglomerate/tree_deserializer.rb', line 7 def initialize(object) self.object = object end |
Instance Method Details
#deserialize(item = object) ⇒ Object
11 12 13 14 |
# File 'lib/conglomerate/tree_deserializer.rb', line 11 def deserialize(item = object) raise "ObjectNotCollectionRoot" if !object["collection"] deserialize_particle(object["collection"], Collection) end |