class VantivLite::XML::Nokogiri::Parser
Private Instance Methods
root(xml)
click to toggle source
# File lib/vantiv_lite/xml/nokogiri.rb, line 14 def root(xml) ::Nokogiri::XML(xml) { |c| c.options = ::Nokogiri::XML::ParseOptions::NOBLANKS }.root end
value_with!(element)
click to toggle source
# File lib/vantiv_lite/xml/nokogiri.rb, line 18 def value_with!(element) return element.text if element.attributes.empty? && element.elements.empty? element.to_h.merge(hash_with(*element.elements)) end