Sha256: 98aae3dc6fcd5f348853b255fb7aaceb20b2798b7cf8b2c1ebff864b8593d3b9
Contents?: true
Size: 374 Bytes
Versions: 3
Compression:
Stored size: 374 Bytes
Contents
module MWS module Orders class Document 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mws-orders-0.2.1 | lib/mws/orders/document.rb |
mws-orders-0.2.0 | lib/mws/orders/document.rb |
mws-orders-0.1.1 | lib/mws/orders/document.rb |