Class: MWS::MerchantFulfillment::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/mws/merchant_fulfillment/document.rb

Direct Known Subclasses

Collection, Entity

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Document

Returns a new instance of Document.



8
9
10
# File 'lib/mws/merchant_fulfillment/document.rb', line 8

def initialize(node)
  @node = node
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



6
7
8
# File 'lib/mws/merchant_fulfillment/document.rb', line 6

def node
  @node
end

Instance Method Details

#xpath(path) ⇒ Object



12
13
14
# File 'lib/mws/merchant_fulfillment/document.rb', line 12

def xpath(path)
  node.xpath(add_namespace(path))
end