Class: RForce::SoapResponseNokogiri
- Inherits:
-
Object
- Object
- RForce::SoapResponseNokogiri
- Defined in:
- lib/rforce/soap_response_nokogiri.rb
Instance Method Summary collapse
-
#initialize(content) ⇒ SoapResponseNokogiri
constructor
Parses an XML string into structured data.
-
#parse ⇒ Object
Digests an XML DOM node into nested Ruby types.
Constructor Details
#initialize(content) ⇒ SoapResponseNokogiri
Parses an XML string into structured data.
7 8 9 |
# File 'lib/rforce/soap_response_nokogiri.rb', line 7 def initialize(content) @content = content end |
Instance Method Details
#parse ⇒ Object
Digests an XML DOM node into nested Ruby types.
12 13 14 15 16 |
# File 'lib/rforce/soap_response_nokogiri.rb', line 12 def parse document = Nokogiri.XML(@content) node = document % '//soapenv:Body' self.class.node_to_ruby node end |