class XCResult::ActionTestSummaryIdentifiableObject

Attributes

identifier[RW]
parent[RW]

Public Class Methods

create(data, parent) click to toggle source
# 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
new(data, parent) click to toggle source
# File lib/xcresult/models.rb, line 107
def initialize(data, parent)
  self.identifier = fetch_value(data, 'identifier')
  self.parent = parent
  super(data)
end

Public Instance Methods

all_subtests() click to toggle source
# File lib/xcresult/models.rb, line 113
def all_subtests
  raise 'Not overridden'
end