Module: Plazucchini::XmlParser

Extended by:
Utils
Defined in:
lib/plazucchini/xml_parser.rb

Class Method Summary collapse

Methods included from Utils

deep_transform_keys, make_user_agent, to_snake_case

Class Method Details

.parse(xml_string) ⇒ Object



11
12
13
14
15
# File 'lib/plazucchini/xml_parser.rb', line 11

def parse(xml_string)
  doc = Nokogiri::XML(xml_string)
  doc.remove_namespaces!
  node_to_hash(doc.root)
end