Class: CovLoupe::ModelData
- Inherits:
-
Data
- Object
- Data
- CovLoupe::ModelData
- Defined in:
- lib/cov_loupe/model/model_data.rb
Overview
Immutable data container for coverage data loaded from a specific resultset file. Holds the normalized coverage map, timestamp, and resultset path.
This class has no awareness of caching - it's managed by ModelDataCache.
Instance Attribute Summary collapse
-
#coverage_map ⇒ Hash
readonly
Map of absolute file paths to coverage data.
-
#resultset_path ⇒ String
readonly
Absolute path to the .resultset.json file.
-
#timestamp ⇒ Integer
readonly
Latest timestamp from coverage suites.
Instance Attribute Details
#coverage_map ⇒ Hash (readonly)
Map of absolute file paths to coverage data
12 13 14 |
# File 'lib/cov_loupe/model/model_data.rb', line 12 def coverage_map @coverage_map end |
#resultset_path ⇒ String (readonly)
Absolute path to the .resultset.json file
12 13 14 |
# File 'lib/cov_loupe/model/model_data.rb', line 12 def resultset_path @resultset_path end |
#timestamp ⇒ Integer (readonly)
Latest timestamp from coverage suites
12 13 14 |
# File 'lib/cov_loupe/model/model_data.rb', line 12 def @timestamp end |