class Adyen::API::XMLQuerier::REXMLBackend

Public Class Methods

new() click to toggle source
   # File lib/adyen/api/xml_querier.rb
41 def initialize
42   require 'rexml/document'
43 end

Public Instance Methods

document_for_html(html) click to toggle source
   # File lib/adyen/api/xml_querier.rb
45 def document_for_html(html)
46   REXML::Document.new(html)
47 end
document_for_xml(xml) click to toggle source
   # File lib/adyen/api/xml_querier.rb
49 def document_for_xml(xml)
50   REXML::Document.new(xml)
51 end
perform_xpath(query, root_node) click to toggle source
   # File lib/adyen/api/xml_querier.rb
53 def perform_xpath(query, root_node)
54   REXML::XPath.match(root_node, query, NS)          
55 end
stringify_nodeset(nodeset) click to toggle source
   # File lib/adyen/api/xml_querier.rb
57 def stringify_nodeset(nodeset)
58   nodeset.map { |n| n.to_s }.join("")
59 end