class RForce::SoapResponseNokogiri

Public Class Methods

new(content) click to toggle source
# File lib/rforce/soap_response_nokogiri.rb, line 5
def initialize(content)
  @content = content
end

Public Instance Methods

parse() click to toggle source
# File lib/rforce/soap_response_nokogiri.rb, line 9
def parse
  doc = Nokogiri::XML(@content)
  body = doc.at_xpath("//soapenv:Body")
  to_hash(body)
end