Sha256: 389f123eaa0b71c55e114afe2502918582be110c4f785fd6d9a330d13cf9e2a2
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
module Fog module XML class Response def initialize(parser) @parser = parser @data_stream = Nokogiri::XML::SAX::PushParser.new(parser) @response_string = +'' end def call(chunk, _remaining, _total) @response_string << chunk if ENV["DEBUG_RESPONSE"] @data_stream << chunk end def rewind @parser.reset @response_string = +'' end def finish Fog::Logger.debug "\n#{@response_string}" if ENV["DEBUG_RESPONSE"] @data_stream.finish end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-xml-0.1.5 | lib/fog/xml/response.rb |