Sha256: 498a9f557cd0d9b1c602aa23859ee32ba9c81b1fd3af6f089b5714fffc817702
Contents?: true
Size: 405 Bytes
Versions: 11
Compression:
Stored size: 405 Bytes
Contents
require 'delegate' require 'multi_xml' module Peddler # @api private class XMLParser < SimpleDelegator def parse @data ||= find_data end def xml MultiXml.parse(body) end def valid? return unless headers['Content-Length'] headers['Content-Length'].to_i == body.size end private def find_data fail NotImplementedError end end end
Version data entries
11 entries across 11 versions & 1 rubygems