Class: SpmChecker::Result

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_warningsObject (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

#updatesObject (readonly)

Returns the value of attribute updates.



163
164
165
# File 'lib/spm_version_updates/spm_checker.rb', line 163

def updates
  @updates
end