Sha256: 3f3dbe080b7ce72796fd469700e276c76d53ba44928f9230414fe810c94ae2f0
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
require "structure" module MWS module Orders class Document include Structure attr_reader :node def initialize(node) @node = node end def xpath(path) node.xpath(add_namespace(path)) end private def add_namespace(path) path .split("/") .map { |attr| "xmlns:#{attr}" } .join("/") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mws-orders-0.1.0 | lib/mws/orders/document.rb |