Class: XCResult::ActionResult
- Inherits:
-
AbstractObject
- Object
- AbstractObject
- XCResult::ActionResult
- Defined in:
- lib/xcresult/models.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
-
#coverage ⇒ Object
Returns the value of attribute coverage.
-
#diagnostics_ref ⇒ Object
Returns the value of attribute diagnostics_ref.
-
#issues ⇒ Object
Returns the value of attribute issues.
-
#log_ref ⇒ Object
Returns the value of attribute log_ref.
-
#result_name ⇒ Object
Returns the value of attribute result_name.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tests_ref ⇒ Object
Returns the value of attribute tests_ref.
-
#timeline_ref ⇒ Object
Returns the value of attribute timeline_ref.
Attributes inherited from AbstractObject
Instance Method Summary collapse
-
#initialize(data) ⇒ ActionResult
constructor
A new instance of ActionResult.
Methods inherited from AbstractObject
Constructor Details
#initialize(data) ⇒ ActionResult
Returns a new instance of ActionResult.
280 281 282 283 284 285 286 287 288 289 290 291 |
# File 'lib/xcresult/models.rb', line 280 def initialize(data) self.result_name = fetch_value(data, 'resultName') self.status = fetch_value(data, 'status') self.issues = ResultIssueSummaries.new(data['issues']) self.coverage = CodeCoverageInfo.new(data['coverage']) 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
#coverage ⇒ Object
Returns the value of attribute coverage.
275 276 277 |
# File 'lib/xcresult/models.rb', line 275 def coverage @coverage end |
#diagnostics_ref ⇒ Object
Returns the value of attribute diagnostics_ref.
279 280 281 |
# File 'lib/xcresult/models.rb', line 279 def diagnostics_ref @diagnostics_ref end |
#issues ⇒ Object
Returns the value of attribute issues.
274 275 276 |
# File 'lib/xcresult/models.rb', line 274 def issues @issues end |
#log_ref ⇒ Object
Returns the value of attribute log_ref.
277 278 279 |
# File 'lib/xcresult/models.rb', line 277 def log_ref @log_ref end |
#result_name ⇒ Object
Returns the value of attribute result_name.
272 273 274 |
# File 'lib/xcresult/models.rb', line 272 def result_name @result_name end |
#status ⇒ Object
Returns the value of attribute status.
273 274 275 |
# File 'lib/xcresult/models.rb', line 273 def status @status end |
#tests_ref ⇒ Object
Returns the value of attribute tests_ref.
278 279 280 |
# File 'lib/xcresult/models.rb', line 278 def tests_ref @tests_ref end |
#timeline_ref ⇒ Object
Returns the value of attribute timeline_ref.
276 277 278 |
# File 'lib/xcresult/models.rb', line 276 def timeline_ref @timeline_ref end |