Class: Jekyll::Archimate::DiagramEntity
- Inherits:
-
EntityBase
- Object
- EntityBase
- Jekyll::Archimate::DiagramEntity
- Defined in:
- lib/jekyll/archimate/archimate_hook.rb
Overview
Represents an ArchiMate Diagram
Instance Attribute Summary
Attributes inherited from EntityBase
Instance Method Summary collapse
Methods inherited from EntityBase
Constructor Details
This class inherits a constructor from Jekyll::Archimate::EntityBase
Instance Method Details
#attr_hash ⇒ Object
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 |