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 convert(name, value)
    attr = @attributes.find { |a| a.name == name }
    raise "Unknown attribute #{name}" unless attr
    attr.convert(value)
  end
def convert ( name , value ) attr = @attributes . find { | a | a . name == name } raise "Unknown attribute #{name}" unless attr attr . convert ( value ) end
Attributes describe how we extract values from XML/JSON
Attributes describe how we extract values from XML / JSON
name
<not_specific>
value
<not_specific>