Methods
Public Instance methods
[ show source ]
# File activeresource/lib/active_resource/formats/xml_format.rb, line 18
18: def decode(xml)
19: from_xml_data(Hash.from_xml(xml))
20: end
[ show source ]
# File activeresource/lib/active_resource/formats/xml_format.rb, line 14
14: def encode(hash, options={})
15: hash.to_xml(options)
16: end
[ show source ]
# File activeresource/lib/active_resource/formats/xml_format.rb, line 6 6: def extension 7: "xml" 8: end
[ show source ]
# File activeresource/lib/active_resource/formats/xml_format.rb, line 10
10: def mime_type
11: "application/xml"
12: end