server/lib/cimi/models/schema.rb
#
# Attributes describe how we extract values from XML/JSON
#
Attributes describe how we extract values from XML/JSON
Attributes describe how we extract values from XML / JSON
def to_xml(model, xml = nil)
    xml ||= ::Hash.new
    @attributes.freeze
    model.prepare if model.respond_to?(:prepare)
    @attributes.each { |attr| attr.to_xml(model, xml) }
    xml
  end
def to_xml ( model , xml = nil ) xml ||= :: Hash . new @attributes . freeze model . prepare if model . respond_to? ( :prepare ) @attributes . each { | attr | attr . to_xml ( model , xml ) } xml end
Attributes describe how we extract values from XML/JSON
Attributes describe how we extract values from XML / JSON
model
<not_specific>
xml
<not_specific>