Sha256: fa30059c4d78cd70cead9a343883b042f7c246c6d6cf2899a4ef8fb958bcd690

Contents?: true

Size: 411 Bytes

Versions: 2

Compression:

Stored size: 411 Bytes

Contents

require 'peddler/parsers/model'
require 'mws/reports/parsers/report_request_info'

module MWS
  module Reports
    module Parsers
      class ReportRequests < ::Peddler::Parsers::Model
        value :count do
          integer_at_xpath('Count')
        end

        def report_request_infos
          xpath('ReportRequestInfo').map { |node| ReportRequestInfo.new(node) }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-0.6.5 lib/mws/reports/parsers/report_requests.rb
peddler-0.6.4 lib/mws/reports/parsers/report_requests.rb