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_json(model, json = {})
    @attributes.freeze
    model.prepare if model.respond_to?(:prepare)
    @attributes.each { |attr| attr.to_json(model, json) }
    json
  end
def to_json ( model , json = { } ) @attributes . freeze model . prepare if model . respond_to? ( :prepare ) @attributes . each { | attr | attr . to_json ( model , json ) } json end
Attributes describe how we extract values from XML/JSON
Attributes describe how we extract values from XML / JSON
model
<not_specific>
json
<not_specific>