Sha256: 67a0f7669ce5830ace6d57cee19bbd9ff51a973cb236a4589fbfda4fc822fdd0
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
require 'mws/orders/parsers/order_item' require 'peddler/parsers/collection' require 'peddler/parsers/tokenable' module MWS module Orders module Parsers class OrderItems < ::Peddler::Parsers::Collection include ::Peddler::Parsers::Tokenable def each(&blk) order_item_nodes.each { |node| yield OrderItem.new(node) } end private def order_item_nodes xpath('OrderItems/OrderItem') end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
peddler-0.6.5 | lib/mws/orders/parsers/order_items.rb |
peddler-0.6.4 | lib/mws/orders/parsers/order_items.rb |