Module: Archimate::FileFormats::Serializer::Archi::Location
- Included in:
- ArchiFileWriter
- Defined in:
- lib/archimate/file_formats/serializer/archi/location.rb
Instance Method Summary collapse
-
#serialize_location(xml, bendpoint) ⇒ Object
startX = location.x - source_attachment.x startY = location.y - source_attachment.y endX = location.x - target_attachment.x endY = location.y - source_attachment.y.
Instance Method Details
#serialize_location(xml, bendpoint) ⇒ Object
startX = location.x - source_attachment.x startY = location.y - source_attachment.y endX = location.x - target_attachment.x endY = location.y - source_attachment.y
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/archimate/file_formats/serializer/archi/location.rb', line 12 def serialize_location(xml, bendpoint) xml.bendpoint( remove_nil_values( startX: bendpoint.x == 0 ? nil : bendpoint.x&.to_i, startY: bendpoint.y == 0 ? nil : bendpoint.y&.to_i, endX: bendpoint.end_x&.to_i, endY: bendpoint.end_y&.to_i ) ) end |