Method: CoreLibrary::XmlHelper.deserialize_xml_to_hash
- Defined in:
- lib/apimatic-core/utilities/xml_helper.rb
.deserialize_xml_to_hash(xml, root_element_name, clazz, datetime_format = nil) ⇒ Object
Deserializes XML to an array of a specific class.
164 165 166 167 168 169 |
# File 'lib/apimatic-core/utilities/xml_helper.rb', line 164 def deserialize_xml_to_hash(xml, root_element_name, clazz, datetime_format = nil) doc = Nokogiri::XML::Document.parse xml from_element_to_hash(doc, root_element_name, clazz, datetime_format: datetime_format) end |