Module: Archimate::FileFormats::Serializer::Archi::Model
- Included in:
- ArchiFileWriter
- Defined in:
- lib/archimate/file_formats/serializer/archi/model.rb
Instance Method Summary collapse
Instance Method Details
#serialize_model(xml, model) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/archimate/file_formats/serializer/archi/model.rb', line 8 def serialize_model(xml, model) xml["archimate"].model( "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance", "xmlns:archimate" => "http://www.archimatetool.com/archimate", "name" => model.name, "id" => model.id, "version" => @version ) do serialize(xml, model.organizations) serialize(xml, model.properties) serialize_documentation(xml, model.documentation, "purpose") end end |