Module: Dat::Analysis::Result::DefaultMethods

Defined in:
lib/dat/analysis/result.rb

Instance Method Summary collapse

Instance Method Details

#candidateObject

Public: Get the result data for the ‘candidate’ code path.

Returns the ‘candidate’ field of the result hash.



53
54
55
# File 'lib/dat/analysis/result.rb', line 53

def candidate
  self['candidate']
end

#controlObject

Public: Get the result data for the ‘control’ code path.

Returns the ‘control’ field of the result hash.



46
47
48
# File 'lib/dat/analysis/result.rb', line 46

def control
  self['control']
end

#experiment_nameObject

Public: Get the experiment name

Returns the ‘experiment’ field of the result hash.



74
75
76
# File 'lib/dat/analysis/result.rb', line 74

def experiment_name
  self['experiment']
end

#firstObject

Public: Get which code path was run first.

Returns the ‘first’ field of the result hash.



67
68
69
# File 'lib/dat/analysis/result.rb', line 67

def first
  self['first']
end

#timestampObject

Public: Get the timestamp when the result was recorded.

Returns a Time object for the timestamp for this result.



60
61
62
# File 'lib/dat/analysis/result.rb', line 60

def timestamp
  @timestamp ||= Time.parse(self['timestamp'])
end