Class: Trainer::XCResult::ResultIssueSummaries

Inherits:
AbstractObject show all
Defined in:
trainer/lib/trainer/xcresult.rb

Overview

  • ResultIssueSummaries

    • Kind: object

    • Properties: + analyzerWarningSummaries: [IssueSummary] + errorSummaries: [IssueSummary] + testFailureSummaries: [TestFailureIssueSummary] + warningSummaries: [IssueSummary]

Instance Attribute Summary collapse

Attributes inherited from AbstractObject

#type

Instance Method Summary collapse

Methods inherited from AbstractObject

#fetch_value, #fetch_values

Constructor Details

#initialize(data) ⇒ ResultIssueSummaries

Returns a new instance of ResultIssueSummaries.



363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
# File 'trainer/lib/trainer/xcresult.rb', line 363

def initialize(data)
  self.analyzer_warning_summaries = fetch_values(data, "analyzerWarningSummaries").map do |summary_data|
    IssueSummary.new(summary_data)
  end
  self.error_summaries = fetch_values(data, "errorSummaries").map do |summary_data|
    IssueSummary.new(summary_data)
  end
  self.test_failure_summaries = fetch_values(data, "testFailureSummaries").map do |summary_data|
    TestFailureIssueSummary.new(summary_data)
  end
  self.warning_summaries = fetch_values(data, "warningSummaries").map do |summary_data|
    IssueSummary.new(summary_data)
  end
  super
end

Instance Attribute Details

#analyzer_warning_summariesObject

Returns the value of attribute analyzer_warning_summaries.



359
360
361
# File 'trainer/lib/trainer/xcresult.rb', line 359

def analyzer_warning_summaries
  @analyzer_warning_summaries
end

#error_summariesObject

Returns the value of attribute error_summaries.



360
361
362
# File 'trainer/lib/trainer/xcresult.rb', line 360

def error_summaries
  @error_summaries
end

#test_failure_summariesObject

Returns the value of attribute test_failure_summaries.



361
362
363
# File 'trainer/lib/trainer/xcresult.rb', line 361

def test_failure_summaries
  @test_failure_summaries
end

#warning_summariesObject

Returns the value of attribute warning_summaries.



362
363
364
# File 'trainer/lib/trainer/xcresult.rb', line 362

def warning_summaries
  @warning_summaries
end