Sha256: ad53e11ca3a1d7d3868c09839a2b7f97834ea6ea78729ac0b37e1b0a9707d249

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

module Restfulie::Common::Representation
  # Implements the interface for marshal Xml media type requests (application/xml)
  class XmlD

    cattr_reader :media_type_name
    @@media_type_name = 'application/xml'

    cattr_reader :headers
    @@headers = { 
      :post => { 'Content-Type' => media_type_name }
    }

    def unmarshal(string)
      raise "should never be invoked, xml to ruby objects should be handled by rails itself"
    end

    def marshal(string, rel)
      string
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
restfulie-0.7.0 lib/restfulie/common/representation/xml.rb