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