14 def encode(hash
, options
={})
19 from_xml_data(Hash
.from_xml(xml
))
23 # Manipulate from_xml Hash, because xml_simple is not exactly what we
24 # want for Active Resource.
25 def from_xml_data(data)
26 if data.is_a
?(Hash
) && data.keys
.size
== 1