Class: Jekyll::Archimate::ElementEntity

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

Overview

Represents an ArchiMate Element

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



7
8
9
10
11
12
13
14
# File 'lib/jekyll/archimate/element_entity.rb', line 7

def attr_hash
  super.merge(
    type: "Element",
    element_type: entity.type,
    relationships: element_relationships,
    views: model.diagrams.select { |dia| dia.element_ids.include?(entity.id) }.map(&:id)
  )
end