Method: Representable::XML::Collection#update_properties_from

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

#update_properties_from(doc, options, format) ⇒ Object



25
26
27
28
29
# File 'lib/representable/xml/collection.rb', line 25

def update_properties_from(doc, options, format)
  bin   = representable_bindings_for(format, options).first
  value = bin.deserialize_from(doc.search("./*")) # FIXME: use Binding#read.
  replace(value)
end