Sha256: a1c9b8b4f392248aebbc82244b080ed1398c5c0c45d4a02a9409343f739cbafe

Contents?: true

Size: 213 Bytes

Versions: 3

Compression:

Stored size: 213 Bytes

Contents

require 'faraday_middleware/response_middleware'

module FaradayMiddleware
  class ParseXml < ResponseMiddleware
    dependency 'multi_xml'

    define_parser { |body|
      ::MultiXml.parse(body)
    }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
faraday_middleware-0.8.2 lib/faraday_middleware/response/parse_xml.rb
faraday_middleware-0.8.1 lib/faraday_middleware/response/parse_xml.rb
faraday_middleware-0.8.0 lib/faraday_middleware/response/parse_xml.rb