Sha256: 6d0270d588bccbb363d1645b59472a1de866723fe8ec7b7d084810e73cccf8a9

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

require 'peddler/parsers/model'
require 'mws/feeds/parsers/feed_submission_info'

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

        def feed_submissions
          xpath('FeedSubmissionInfo').map { |node| FeedSubmissionInfo.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/feeds/parsers/feed_submissions.rb
peddler-0.6.4 lib/mws/feeds/parsers/feed_submissions.rb