Attributes describe how we extract values from XML/JSON
# File lib/cimi/model/schema.rb, line 36 def from_json(json, model) model[@name] = json[@json_name] end
# File lib/cimi/model/schema.rb, line 32 def from_xml(xml, model) model[@name] = xml[@xml_name].first if xml.has_key?(@xml_name) end
Generated with the Darkfish Rdoc Generator 2.