class 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 lib/xcresult/models.rb, line 11 def initialize(data) self.type = data['_type']['_name'] end
Public Instance Methods
fetch_value(data, key)
click to toggle source
# File lib/xcresult/models.rb, line 15 def fetch_value(data, key) (data[key] || {})['_value'] end
fetch_values(data, key)
click to toggle source
# File lib/xcresult/models.rb, line 19 def fetch_values(data, key) return [] if data.nil? (data[key] || {})['_values'] || [] end