Class: Archimate::DataModel::Viewpoint
- Inherits:
-
Object
- Object
- Archimate::DataModel::Viewpoint
show all
- Includes:
- Comparison
- Defined in:
- lib/archimate/data_model/viewpoint.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Comparison
#==, #[], #dig, #each, #hash, included, #pretty_print, #to_h
Constructor Details
#initialize(id:, name:, documentation: nil, type: nil, concerns: [], viewpoint_purposes: [], viewpoint_contents: [], allowed_element_types: [], allowed_relationship_types: [], modeling_notes: []) ⇒ Viewpoint
Returns a new instance of Viewpoint.
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# File 'lib/archimate/data_model/viewpoint.rb', line 46
def initialize(id:, name:, documentation: nil, type: nil,
concerns: [], viewpoint_purposes: [],
viewpoint_contents: [], allowed_element_types: [],
allowed_relationship_types: [], modeling_notes: [])
@id = id
@name = name
@documentation = documentation
@type = type
@concerns = concerns
@viewpoint_purposes = viewpoint_purposes
@viewpoint_contents = viewpoint_contents
@allowed_element_types = allowed_element_types
@allowed_relationship_types = allowed_relationship_types
@modeling_notes = modeling_notes
end
|
Instance Attribute Details
#allowed_element_types ⇒ Array<ElementType>
38
|
# File 'lib/archimate/data_model/viewpoint.rb', line 38
model_attr :allowed_element_types
|
#allowed_relationship_types ⇒ Array<RelationshipType>
41
|
# File 'lib/archimate/data_model/viewpoint.rb', line 41
model_attr :allowed_relationship_types
|
#concerns ⇒ Array<Concern>
29
|
# File 'lib/archimate/data_model/viewpoint.rb', line 29
model_attr :concerns
|
16
|
# File 'lib/archimate/data_model/viewpoint.rb', line 16
model_attr :documentation
|
#id ⇒ String
10
|
# File 'lib/archimate/data_model/viewpoint.rb', line 10
model_attr :id
|
#modeling_notes ⇒ Array<ModelingNote>
44
|
# File 'lib/archimate/data_model/viewpoint.rb', line 44
model_attr :modeling_notes
|
13
|
# File 'lib/archimate/data_model/viewpoint.rb', line 13
model_attr :name
|
#type ⇒ String, NilClass
26
|
# File 'lib/archimate/data_model/viewpoint.rb', line 26
model_attr :type
|
#viewpoint_contents ⇒ Array<ViewpointContentEnum>
35
|
# File 'lib/archimate/data_model/viewpoint.rb', line 35
model_attr :viewpoint_contents
|
#viewpoint_purposes ⇒ Array<ViewpointPurposeEnum>
32
|
# File 'lib/archimate/data_model/viewpoint.rb', line 32
model_attr :viewpoint_purposes
|