lib/setsuzoku/service/web_service/api_strategy.rb in setsuzoku-0.12.56 vs lib/setsuzoku/service/web_service/api_strategy.rb in setsuzoku-0.12.57

- old
+ new

@@ -114,10 +114,12 @@ # Convert an XML string to a usable hash. sig { params(xml: String).returns(T::Hash[Symbol, T.untyped])} def convert_xml_to_hash(xml) begin result = Nokogiri::XML(xml) - { result.root.name.underscore.to_sym => xml_node_to_hash(result.root) } + key = result.root.name.underscore.to_sym + val = xml_node_to_hash(result.root) + { key => val } rescue Exception => e {} end end \ No newline at end of file