Sha256: 5aaa34c451384314a6406e74d4d75171a4c35e9a9db7d00fe7d3774d9c89f2bf
Contents?: true
Size: 289 Bytes
Versions: 4
Compression:
Stored size: 289 Bytes
Contents
require "mws/orders/collection" require "mws/orders/order" require "mws/orders/tokenable" module MWS module Orders class Orders < Collection include Tokenable def each(&blk) xpath("Orders/Order").map { |node| yield Order.new(node) } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mws-orders-0.2.1 | lib/mws/orders/orders.rb |
mws-orders-0.2.0 | lib/mws/orders/orders.rb |
mws-orders-0.1.1 | lib/mws/orders/orders.rb |
mws-orders-0.1.0 | lib/mws/orders/orders.rb |