Sha256: 02293803a56900b89c454a60069e4b531a46c5ffe09e1ff47fbc624bdb21876c
Contents?: true
Size: 315 Bytes
Versions: 2
Compression:
Stored size: 315 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aitch-1.2.0 | lib/aitch/response_parser/xml_parser.rb |
aitch-1.1.0 | lib/aitch/response_parser/xml_parser.rb |