Class: Jekyll::Archimate::DiagramEntity

Inherits:
EntityBase
  • Object
show all
Defined in:
lib/jekyll/archimate/archimate_hook.rb

Overview

Represents an ArchiMate Diagram

Instance Attribute Summary

Attributes inherited from EntityBase

#entity, #model

Instance Method Summary collapse

Methods inherited from EntityBase

#initialize, #to_h

Constructor Details

This class inherits a constructor from Jekyll::Archimate::EntityBase

Instance Method Details

#attr_hashObject



72
73
74
75
76
77
78
79
80
81
# File 'lib/jekyll/archimate/archimate_hook.rb', line 72

def attr_hash
  super.merge(
    type: "Diagram",
    path: "svg/#{entity.id}.svg",
    viewpoint: entity.viewpoint,
    elements: entity.elements.map(&:id),
    relationships: entity.relationships.map(&:id),
    views: []
  )
end