Sha256: d92b71dd06c62a5cb04973fea3a05284b1b601c438a1975810c27dccb7c738c6

Contents?: true

Size: 320 Bytes

Versions: 6

Compression:

Stored size: 320 Bytes

Contents

require 'peddler/xml_parser'

module Peddler
  # @api private
  class XMLResponseParser < XMLParser
    def next_token
      parse.fetch('NextToken', false)
    end

    private

    def find_data
      results = xml.values.first.find { |k, _| k.include?('Result') }
      results ? results.last : nil
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
peddler-1.0.1 lib/peddler/xml_response_parser.rb
peddler-1.0.0 lib/peddler/xml_response_parser.rb
peddler-0.19.0 lib/peddler/xml_response_parser.rb
peddler-0.18.0 lib/peddler/xml_response_parser.rb
peddler-0.17.1 lib/peddler/xml_response_parser.rb
peddler-0.17.0 lib/peddler/xml_response_parser.rb