Class: MWS::MerchantFulfillment::Document
- Inherits:
-
Object
- Object
- MWS::MerchantFulfillment::Document
- Defined in:
- lib/mws/merchant_fulfillment/document.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node) ⇒ Document
constructor
A new instance of Document.
- #xpath(path) ⇒ Object
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
#node ⇒ Object (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 |