module Representable::XML::Collection::Methods

Public Instance Methods

create_representation_with(doc, options, format) click to toggle source
Calls superclass method
# File lib/representable/xml/collection.rb, line 10
def create_representation_with(doc, options, format)
  bin = representable_map(options, format).first
  bin.write(doc, super, bin.name)
end
update_properties_from(doc, *args) click to toggle source
Calls superclass method
# File lib/representable/xml/collection.rb, line 15
def update_properties_from(doc, *args)
  super(doc.search("./*"), *args) # pass the list of collection items to Hash::Collection#update_properties_from.
end