Module: Dat::Analysis::Result::DefaultMethods
- Defined in:
- lib/dat/analysis/result.rb
Instance Method Summary collapse
-
#candidate ⇒ Object
Public: Get the result data for the ‘candidate’ code path.
-
#control ⇒ Object
Public: Get the result data for the ‘control’ code path.
-
#experiment_name ⇒ Object
Public: Get the experiment name.
-
#first ⇒ Object
Public: Get which code path was run first.
-
#timestamp ⇒ Object
Public: Get the timestamp when the result was recorded.
Instance Method Details
#candidate ⇒ Object
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 |
#control ⇒ Object
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_name ⇒ Object
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 |
#first ⇒ Object
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 |
#timestamp ⇒ Object
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 ||= Time.parse(self['timestamp']) end |