Class: Representable::Deserializer::Hash

Inherits:
Collection show all
Defined in:
lib/representable/deserializer.rb

Instance Method Summary collapse

Methods inherited from Representable::Deserializer

#initialize

Methods included from Prepare

#prepare, #prepare!, #prepare_for

Constructor Details

This class inherits a constructor from Representable::Deserializer

Instance Method Details

#call(hash) ⇒ Object



107
108
109
110
111
# File 'lib/representable/deserializer.rb', line 107

def call(hash)
  {}.tap do |hsh|
    hash.each { |key, fragment| hsh[key] = deserialize!(fragment) }
  end
end