Sha256: 6d6f2bf830eaa73b0a164ea6c9f83121553d2f7568a3f2c2defa877968911191

Contents?: true

Size: 398 Bytes

Versions: 4

Compression:

Stored size: 398 Bytes

Contents

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

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| FeedSubmission.new(node) }
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
peddler-0.6.3 lib/mws/feeds/parsers/feed_submissions.rb
peddler-0.6.2 lib/mws/feeds/parsers/feed_submissions.rb
peddler-0.6.1 lib/mws/feeds/parsers/feed_submissions.rb
peddler-0.6.0 lib/mws/feeds/parsers/feed_submissions.rb