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