class RForce::SoapResponseHpricot

Public Class Methods

new(content) click to toggle source

Parses an XML string into structured data.

# File lib/rforce/soap_response_hpricot.rb, line 8
def initialize(content)
  @content = content
end

Public Instance Methods

parse() click to toggle source

Digests an XML DOM node into nested Ruby types.

# File lib/rforce/soap_response_hpricot.rb, line 13
def parse
  document = Hpricot.XML(@content)
  node = document % 'soapenv:Body'
  self.class.node_to_ruby node
end