Module: SoapObject::Response

Included in:
SoapObject
Defined in:
lib/soap-object/response.rb

Instance Method Summary collapse

Instance Method Details

#bodyObject

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

#docObject

Return the response as a Nokogiri document



35
36
37
# File 'lib/soap-object/response.rb', line 35

def doc
  response.doc
end

#to_hashObject

Return the response as a Hash



21
22
23
# File 'lib/soap-object/response.rb', line 21

def to_hash
  response.hash
end

#to_xmlObject

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