Method: Representable::Hash::Collection#update_properties_from

Defined in:
lib/representable/hash/collection.rb

#update_properties_from(doc, options, format) ⇒ Object



26
27
28
29
30
31
# File 'lib/representable/hash/collection.rb', line 26

def update_properties_from(doc, options, format)
  bin   = representable_mapper(format, options).bindings.first
  #value = bin.deserialize_from(doc)
  value = Deserializer::Collection.new(bin).call(doc)
  represented.replace(value)
end