Module: Archimate::FileFormats::Serializer::ModelExchangeFile::V21::Connection

Included in:
ModelExchangeFileWriter21
Defined in:
lib/archimate/file_formats/serializer/model_exchange_file/v21/connection.rb

Instance Method Summary collapse

Instance Method Details

#serialize_connection(xml, sc) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/archimate/file_formats/serializer/model_exchange_file/v21/connection.rb', line 9

def serialize_connection(xml, sc)
  xml.connection(
    identifier: identifier(sc.id),
    relationshipref: identifier(sc.relationship&.id),
    source: identifier(sc.source&.id),
    target: identifier(sc.target&.id)
  ) do
    serialize(xml, sc.bendpoints)
    serialize(xml, sc.style)
  end
end