lib/mws/orders/parsers/order_items.rb in peddler-0.6.3 vs lib/mws/orders/parsers/order_items.rb in peddler-0.6.4

- old
+ new

@@ -1,11 +1,14 @@ 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