class CMDx::Run
def first_result
def first_result return @first_result if defined?(@first_result) @first_result = @results.first end
def initialize(attributes = {})
def initialize(attributes = {}) @id = attributes[:id] || SecureRandom.uuid @results = Array(attributes[:results]) end
def to_h
def to_h RunSerializer.call(self) end
def to_s
def to_s RunInspector.call(self) end