Source: show | on GitHub
# File activeresource/lib/active_resource/formats/xml_format.rb, line 20 20: def decode(xml) 21: Formats.remove_root(Hash.from_xml(xml)) 22: end
# File activeresource/lib/active_resource/formats/xml_format.rb, line 16 16: def encode(hash, options={}) 17: hash.to_xml(options) 18: end
# File activeresource/lib/active_resource/formats/xml_format.rb, line 8 8: def extension 9: "xml" 10: end
# File activeresource/lib/active_resource/formats/xml_format.rb, line 12 12: def mime_type 13: "application/xml" 14: end