Sha256: bfe23aa2a319db97d72031599c5deca8276e45e13a71146673eaf8d5a9dedc55
Contents?: true
Size: 463 Bytes
Versions: 2
Compression:
Stored size: 463 Bytes
Contents
require 'mws/orders/parsers/order' require 'peddler/parsers/collection' require 'peddler/parsers/tokenable' module MWS module Orders module Parsers class Orders < ::Peddler::Parsers::Collection include ::Peddler::Parsers::Tokenable def each(&blk) order_nodes.each { |node| yield Order.new(node) } end private def order_nodes xpath('Orders/Order') 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/orders.rb |
peddler-0.6.4 | lib/mws/orders/parsers/orders.rb |