Class: ProjectData

Inherits:
Object
  • Object
show all
Defined in:
lib/almirah/project/project_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProjectData

Returns a new instance of ProjectData.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/almirah/project/project_data.rb', line 9

def initialize
  @specifications = []
  @protocols = []
  @traceability_matrices = []
  @coverage_matrices = []
  @source_files = []
  @implementation_matrices = []
  @decisions = []
  # Insertion-ordered list of single-key hashes { "<first-level folder>" => [Decision, ...] },
  # grouping decision records by the planning folder they live in (see ADR-197).
  @decision_groups = []
  @risk_records = []
  # Insertion-ordered list of single-key hashes { "<first-level risks/ folder>" => [RiskRecord, ...] },
  # grouping risk records by the registry they live in (see ADR-215).
  @risk_registries = []
  # Registry prefaces (ADR-216): each registry's parsed overview.md, keyed by
  # the registry (first-level risks/ folder) name. A registry without an
  # overview.md has no entry; its page simply starts at the register table.
  @risk_registry_prefaces = {}

  @specifications_dictionary = {}
  @covered_specifications_dictionary = {}
  @implemented_specifications_dictionary = {}

  @link_registry = LinkRegistry.new
end

Instance Attribute Details

#coverage_matricesObject (readonly)

Returns the value of attribute coverage_matrices.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def coverage_matrices
  @coverage_matrices
end

#covered_specifications_dictionaryObject (readonly)

Returns the value of attribute covered_specifications_dictionary.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def covered_specifications_dictionary
  @covered_specifications_dictionary
end

#decision_groupsObject (readonly)

Returns the value of attribute decision_groups.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def decision_groups
  @decision_groups
end

#decisionsObject (readonly)

Returns the value of attribute decisions.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def decisions
  @decisions
end

#implementation_matricesObject (readonly)

Returns the value of attribute implementation_matrices.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def implementation_matrices
  @implementation_matrices
end

#implemented_specifications_dictionaryObject (readonly)

Returns the value of attribute implemented_specifications_dictionary.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def implemented_specifications_dictionary
  @implemented_specifications_dictionary
end

Returns the value of attribute link_registry.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def link_registry
  @link_registry
end

#protocolsObject (readonly)

Returns the value of attribute protocols.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def protocols
  @protocols
end

#risk_recordsObject (readonly)

Returns the value of attribute risk_records.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def risk_records
  @risk_records
end

#risk_registriesObject (readonly)

Returns the value of attribute risk_registries.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def risk_registries
  @risk_registries
end

#risk_registry_prefacesObject (readonly)

Returns the value of attribute risk_registry_prefaces.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def risk_registry_prefaces
  @risk_registry_prefaces
end

#source_filesObject (readonly)

Returns the value of attribute source_files.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def source_files
  @source_files
end

#specificationsObject (readonly)

Returns the value of attribute specifications.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def specifications
  @specifications
end

#specifications_dictionaryObject (readonly)

Returns the value of attribute specifications_dictionary.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def specifications_dictionary
  @specifications_dictionary
end

#traceability_matricesObject (readonly)

Returns the value of attribute traceability_matrices.



4
5
6
# File 'lib/almirah/project/project_data.rb', line 4

def traceability_matrices
  @traceability_matrices
end