Module: Archimate::FileFormats::Serializer::ModelExchangeFile::V30::Connection

Included in:
ModelExchangeFileWriter30
Defined in:
lib/archimate/file_formats/serializer/model_exchange_file/v30/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
20
# File 'lib/archimate/file_formats/serializer/model_exchange_file/v30/connection.rb', line 9

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