module ActiveModel::Serializers::Xml
def from_xml(xml)
def from_xml(xml) self.attributes = Hash.from_xml(xml).values.first self end
def to_xml(options = {}, &block)
Returns XML representing the model. Configuration can be
def to_xml(options = {}, &block) Serializer.new(self, options).serialize(&block) end