Module: Archsight::Annotations::Architecture

Defined in:
lib/archsight/annotations/architecture_annotations.rb

Overview

Architecture module adds common architecture annotations to resource classes

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/archsight/annotations/architecture_annotations.rb', line 7

def self.included(base)
  base.class_eval do
    annotation "architecture/abbr",
               description: "Abbreviation or short name",
               title: "Abbreviation"
    annotation "architecture/description",
               description: "Textual description of the resource",
               title: "Description",
               format: :markdown
    annotation "architecture/documentation",
               description: "Documentation URL or reference",
               title: "Documentation",
               type: URI
    annotation "architecture/tags",
               description: "Comma-separated tags",
               filter: :list,
               title: "Tags"
  end
end