class Trainer::XCResult::AbstractObject

Model attributes and relationships taken from running the following command: xcrun xcresulttool formatDescription

Attributes

type[RW]

Public Class Methods

new(data) click to toggle source
# File trainer/lib/trainer/xcresult.rb, line 8
def initialize(data)
  self.type = data["_type"]["_name"]
end

Public Instance Methods

fetch_value(data, key) click to toggle source
# File trainer/lib/trainer/xcresult.rb, line 12
def fetch_value(data, key)
  return (data[key] || {})["_value"]
end
fetch_values(data, key) click to toggle source
# File trainer/lib/trainer/xcresult.rb, line 16
def fetch_values(data, key)
  return (data[key] || {})["_values"] || []
end