Class: Trainer::LegacyXCResult::ActionTestSummaryIdentifiableObject
- Inherits:
-
ActionAbstractTestSummary
- Object
- AbstractObject
- ActionAbstractTestSummary
- Trainer::LegacyXCResult::ActionTestSummaryIdentifiableObject
- Defined in:
- trainer/lib/trainer/legacy_xcresult.rb
Overview
-
ActionTestSummaryIdentifiableObject
-
Supertype: ActionAbstractTestSummary
-
Kind: object
-
Properties: + identifier: String?
-
Direct Known Subclasses
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.
106 107 108 109 110 |
# File 'trainer/lib/trainer/legacy_xcresult.rb', line 106 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.
104 105 106 |
# File 'trainer/lib/trainer/legacy_xcresult.rb', line 104 def identifier @identifier end |
#parent ⇒ Object
Returns the value of attribute parent.
105 106 107 |
# File 'trainer/lib/trainer/legacy_xcresult.rb', line 105 def parent @parent end |
Class Method Details
.create(data, parent) ⇒ Object
116 117 118 119 120 121 122 123 124 125 |
# File 'trainer/lib/trainer/legacy_xcresult.rb', line 116 def self.create(data, parent) type = data["_type"]["_name"] if type == "ActionTestSummaryGroup" return ActionTestSummaryGroup.new(data, parent) elsif type == "ActionTestMetadata" return ActionTestMetadata.new(data, parent) else raise "Unsupported type: #{type}" end end |
Instance Method Details
#all_subtests ⇒ Object
112 113 114 |
# File 'trainer/lib/trainer/legacy_xcresult.rb', line 112 def all_subtests raise "Not overridden" end |