Class: XCResult::ActionTestSummaryIdentifiableObject
- Inherits:
-
ActionAbstractTestSummary
- Object
- AbstractObject
- ActionAbstractTestSummary
- XCResult::ActionTestSummaryIdentifiableObject
- Defined in:
- lib/xcresult/models.rb
Overview
-
ActionTestSummaryIdentifiableObject
-
Supertype: ActionAbstractTestSummary
-
Kind: object
-
Properties: + identifier: String?
-
Direct Known Subclasses
ActionTestMetadata, ActionTestSummary, ActionTestSummaryGroup
Instance Attribute Summary collapse
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#parent ⇒ Object
Returns the value of attribute parent.
Attributes inherited from ActionAbstractTestSummary
Attributes inherited from AbstractObject
Class Method Summary collapse
Instance Method Summary collapse
- #all_subtests ⇒ Object
-
#initialize(data, parent) ⇒ ActionTestSummaryIdentifiableObject
constructor
A new instance of ActionTestSummaryIdentifiableObject.
Methods inherited from AbstractObject
Constructor Details
#initialize(data, parent) ⇒ ActionTestSummaryIdentifiableObject
Returns a new instance of ActionTestSummaryIdentifiableObject.
107 108 109 110 111 |
# File 'lib/xcresult/models.rb', line 107 def initialize(data, parent) self.identifier = fetch_value(data, 'identifier') self.parent = parent super(data) end |
Instance Attribute Details
#identifier ⇒ Object
Returns the value of attribute identifier.
105 106 107 |
# File 'lib/xcresult/models.rb', line 105 def identifier @identifier end |
#parent ⇒ Object
Returns the value of attribute parent.
106 107 108 |
# File 'lib/xcresult/models.rb', line 106 def parent @parent end |
Class Method Details
.create(data, parent) ⇒ Object
117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/xcresult/models.rb', line 117 def self.create(data, parent) type = data['_type']['_name'] if type == 'ActionTestSummaryGroup' return ActionTestSummaryGroup.new(data, parent) elsif type == 'ActionTestSummary' return ActionTestSummary.new(data, parent) elsif type == 'ActionTestMetadata' return ActionTestMetadata.new(data, parent) else raise "Unsupported type: #{type}" end end |
Instance Method Details
#all_subtests ⇒ Object
113 114 115 |
# File 'lib/xcresult/models.rb', line 113 def all_subtests raise 'Not overridden' end |