# File lib/cimi/model/schema.rb, line 186 def from_json(json, model) model[name] = (json[json_name] || {}).inject([]) do |result,item| result << @struct.convert_from_json({ 'name' => item[0], 'value' => item[1] }) end end
# File lib/cimi/model/schema.rb, line 182 def from_xml(xml, model) model[name] = (xml[xml_name] || []).map { |elt| @struct.convert_from_xml(elt) } end
Generated with the Darkfish Rdoc Generator 2.