Sha256: 0883ac42131f4a458ddb4e0b33cb8989530fe971de4242932eae31fac3618e48
Contents?: true
Size: 411 Bytes
Versions: 4
Compression:
Stored size: 411 Bytes
Contents
require 'mws/orders/parsers/order_item' require 'peddler/parsers/collection' module MWS module Orders module Parsers class OrderItems < ::Peddler::Parsers::Collection 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
4 entries across 4 versions & 1 rubygems