Class: Trainer::XCResult::ActionResult

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

Overview

  • ActionResult

    • Kind: object

    • Properties: + resultName: String + status: String + metrics: ResultMetrics + issues: ResultIssueSummaries + coverage: CodeCoverageInfo + timelineRef: Reference? + logRef: Reference? + testsRef: Reference? + diagnosticsRef: Reference?

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) ⇒ ActionResult

Returns a new instance of ActionResult.



272
273
274
275
276
277
278
279
280
281
282
# File 'trainer/lib/trainer/xcresult.rb', line 272

def initialize(data)
  self.result_name = fetch_value(data, "resultName")
  self.status = fetch_value(data, "status")
  self.issues = ResultIssueSummaries.new(data["issues"])

  self.timeline_ref = Reference.new(data["timelineRef"]) if data["timelineRef"]
  self.log_ref = Reference.new(data["logRef"]) if data["logRef"]
  self.tests_ref = Reference.new(data["testsRef"]) if data["testsRef"]
  self.diagnostics_ref = Reference.new(data["diagnosticsRef"]) if data["diagnosticsRef"]
  super
end

Instance Attribute Details

#diagnostics_refObject

Returns the value of attribute diagnostics_ref.



271
272
273
# File 'trainer/lib/trainer/xcresult.rb', line 271

def diagnostics_ref
  @diagnostics_ref
end

#issuesObject

Returns the value of attribute issues.



267
268
269
# File 'trainer/lib/trainer/xcresult.rb', line 267

def issues
  @issues
end

#log_refObject

Returns the value of attribute log_ref.



269
270
271
# File 'trainer/lib/trainer/xcresult.rb', line 269

def log_ref
  @log_ref
end

#result_nameObject

Returns the value of attribute result_name.



265
266
267
# File 'trainer/lib/trainer/xcresult.rb', line 265

def result_name
  @result_name
end

#statusObject

Returns the value of attribute status.



266
267
268
# File 'trainer/lib/trainer/xcresult.rb', line 266

def status
  @status
end

#tests_refObject

Returns the value of attribute tests_ref.



270
271
272
# File 'trainer/lib/trainer/xcresult.rb', line 270

def tests_ref
  @tests_ref
end

#timeline_refObject

Returns the value of attribute timeline_ref.



268
269
270
# File 'trainer/lib/trainer/xcresult.rb', line 268

def timeline_ref
  @timeline_ref
end