# File lib/active_model/serializers/xml.rb, line 143 def from_xml(xml) self.attributes = Hash.from_xml(xml).values.first self end