Module: Representable::XML::Collection::Methods
- Defined in:
- lib/representable/xml/collection.rb
Instance Method Summary collapse
- #create_representation_with(doc, options, format) ⇒ Object
- #update_properties_from(doc, *args) ⇒ Object
Instance Method Details
#create_representation_with(doc, options, format) ⇒ Object
10 11 12 13 |
# File 'lib/representable/xml/collection.rb', line 10 def create_representation_with(doc, , format) bin = representable_map(, format).first bin.write(doc, super, bin.name) end |
#update_properties_from(doc, *args) ⇒ Object
15 16 17 |
# 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 |