Module: SoapObject::Response
- Included in:
- SoapObject
- Defined in:
- lib/soap-object/response.rb
Instance Method Summary collapse
-
#body ⇒ Object
Return the body of the message as a Hash.
-
#doc ⇒ Object
Return the response as a Nokogiri document.
-
#to_hash ⇒ Object
Return the response as a Hash.
-
#to_xml ⇒ Object
Return the xml response.
-
#xpath(path) ⇒ Object
Return value at xpath.
Instance Method Details
#body ⇒ Object
Return the body of the message as a Hash
28 29 30 |
# File 'lib/soap-object/response.rb', line 28 def body response.body end |
#doc ⇒ Object
Return the response as a Nokogiri document
35 36 37 |
# File 'lib/soap-object/response.rb', line 35 def doc response.doc end |
#to_hash ⇒ Object
Return the response as a Hash
21 22 23 |
# File 'lib/soap-object/response.rb', line 21 def to_hash response.hash end |
#to_xml ⇒ Object
Return the xml response
7 8 9 |
# File 'lib/soap-object/response.rb', line 7 def to_xml response.to_xml end |
#xpath(path) ⇒ Object
Return value at xpath
14 15 16 |
# File 'lib/soap-object/response.rb', line 14 def xpath(path) response.xpath(path) end |