Class: SpmChecker::Result
- Inherits:
-
Object
- Object
- SpmChecker::Result
- Defined in:
- lib/spm_version_updates/spm_checker.rb
Overview
Structured result from one checker run. Parse warnings stay separate from update records so counts and fail-on thresholds only consider real updates.
Instance Attribute Summary collapse
-
#parse_warnings ⇒ Object
readonly
Returns the value of attribute parse_warnings.
-
#updates ⇒ Object
readonly
Returns the value of attribute updates.
Instance Method Summary collapse
-
#initialize(updates:, parse_warnings:) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(updates:, parse_warnings:) ⇒ Result
Returns a new instance of Result.
165 166 167 168 |
# File 'lib/spm_version_updates/spm_checker.rb', line 165 def initialize(updates:, parse_warnings:) @updates = normalize_records(updates) @parse_warnings = normalize_records(parse_warnings) end |
Instance Attribute Details
#parse_warnings ⇒ Object (readonly)
Returns the value of attribute parse_warnings.
163 164 165 |
# File 'lib/spm_version_updates/spm_checker.rb', line 163 def parse_warnings @parse_warnings end |
#updates ⇒ Object (readonly)
Returns the value of attribute updates.
163 164 165 |
# File 'lib/spm_version_updates/spm_checker.rb', line 163 def updates @updates end |