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 add_attributes!(args, attr_klass, &block)
    raise "The schema has already been used to convert objects" if @attributes.frozen?
    opts = args.extract_opts!
    args.each { |arg| @attributes << attr_klass.new(arg, opts, &block) }
  end
def add_attributes! ( args , attr_klass , & block ) raise "The schema has already been used to convert objects" if @attributes . frozen? opts = args . extract_opts! args . each { | arg | @attributes << attr_klass . new ( arg , opts , & block ) } end
Attributes describe how we extract values from XML/JSON
Attributes describe how we extract values from XML / JSON
args
attr_klass
block