Class: Jekyll::Archimate::DiagramEntity
- Inherits:
-
EntityBase
- Object
- EntityBase
- Jekyll::Archimate::DiagramEntity
- Defined in:
- lib/jekyll/archimate/diagram_entity.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
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/jekyll/archimate/diagram_entity.rb', line 7 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 |