Module: Archimate::FileFormats::Serializer::ModelExchangeFile::Organization
- Included in:
- ModelExchangeFileWriter21, ModelExchangeFileWriter30
- Defined in:
- lib/archimate/file_formats/serializer/model_exchange_file/organization.rb
Instance Method Summary collapse
Instance Method Details
#serialize_organization(xml, organization) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/archimate/file_formats/serializer/model_exchange_file/organization.rb', line 8 def serialize_organization(xml, organization) if organization.items.empty? && (!organization.documentation || organization.documentation.empty?) && organization.organizations.empty? return end item_attrs = organization.id.nil? || organization.id.empty? ? {} : {identifier: organization.id} xml.item(item_attrs) do serialize_organization_body(xml, organization) end end |