Files

ActiveResource::Formats::XmlFormat

Public Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.