Module: ActiveResource::Formats::XmlFormat

### Home Classes Methods

### In Files

- lib/active_resource/formats/xml_format.rb

### Methods

- #decode
- #encode
- #extension
- #mime_type

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- ActiveResource
- ActiveResource::BadRequest
- ActiveResource::Base
- ActiveResource::ClientError
- ActiveResource::Connection
- ActiveResource::CustomMethods
- ActiveResource::CustomMethods::ClassMethods
- ActiveResource::CustomMethods::InstanceMethods
- ActiveResource::Errors
- ActiveResource::ForbiddenAccess
- ActiveResource::Formats
- ActiveResource::Formats::JsonFormat
- ActiveResource::Formats::XmlFormat
- ActiveResource::HttpMock
- ActiveResource::InvalidRequestError
- ActiveResource::LogSubscriber
- ActiveResource::Observing
- ActiveResource::Railtie
- ActiveResource::Request
- ActiveResource::ResourceConflict
- ActiveResource::ResourceGone
- ActiveResource::ResourceNotFound
- ActiveResource::Response
- ActiveResource::SSLError
- ActiveResource::ServerError
- ActiveResource::TimeoutError
- ActiveResource::UnauthorizedAccess
- ActiveResource::Validations

No matching classes.

# ActiveResource::Formats::XmlFormat

### Public Instance Methods

decode(xml) click to toggle source

    # File lib/active_resource/formats/xml_format.rb, line 20
    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 16
    def encode(hash, options={})
      hash.to_xml(options)
    end

extension() click to toggle source

    # File lib/active_resource/formats/xml_format.rb, line 8
    def extension
      "xml"
    end

mime_type() click to toggle source

    # File lib/active_resource/formats/xml_format.rb, line 12
    def mime_type
      "application/xml"
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.