Sha256: 2ca07726f039d4f19a327eea23ca2d123b899d31645a780c485c6640ab21cbe1

Contents?: true

Size: 314 Bytes

Versions: 3

Compression:

Stored size: 314 Bytes

Contents

# frozen_string_literal: true
module Aitch
  module ResponseParser
    module XMLParser
      def self.type
        :xml
      end

      def self.match?(content_type)
        content_type =~ /xml/
      end

      def self.load(source)
        Nokogiri::XML(source.to_s, nil, "utf-8")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aitch-1.0.2 lib/aitch/response_parser/xml_parser.rb
aitch-1.0.1 lib/aitch/response_parser/xml_parser.rb
aitch-1.0.0 lib/aitch/response_parser/xml_parser.rb