Files

ActiveResource::Formats::XmlFormat

Public Instance Methods

decode(xml) click to toggle source
# File lib/active_resource/formats/xml_format.rb, line 18
def decode(xml)
  from_xml_data(Hash.from_xml(xml))
end
encode(hash, options={}) click to toggle source
# File lib/active_resource/formats/xml_format.rb, line 14
def encode(hash, options={})
  hash.to_xml(options)
end
extension() click to toggle source
# File lib/active_resource/formats/xml_format.rb, line 6
def extension
  "xml"
end
mime_type() click to toggle source
# File lib/active_resource/formats/xml_format.rb, line 10
def mime_type
  "application/xml"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.