Class: Insika::Harvest::ConversionGate::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/insika/harvest/conversion_gate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#baselineObject (readonly)

Returns the value of attribute baseline

Returns:

  • (Object)

    the current value of baseline



26
27
28
# File 'lib/insika/harvest/conversion_gate.rb', line 26

def baseline
  @baseline
end

#currentObject (readonly)

Returns the value of attribute current

Returns:

  • (Object)

    the current value of current



26
27
28
# File 'lib/insika/harvest/conversion_gate.rb', line 26

def current
  @current
end

#metricObject (readonly)

Returns the value of attribute metric

Returns:

  • (Object)

    the current value of metric



26
27
28
# File 'lib/insika/harvest/conversion_gate.rb', line 26

def metric
  @metric
end

#passedObject (readonly)

Returns the value of attribute passed

Returns:

  • (Object)

    the current value of passed



26
27
28
# File 'lib/insika/harvest/conversion_gate.rb', line 26

def passed
  @passed
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



26
27
28
# File 'lib/insika/harvest/conversion_gate.rb', line 26

def reason
  @reason
end

#snapshot_refObject (readonly)

Returns the value of attribute snapshot_ref

Returns:

  • (Object)

    the current value of snapshot_ref



26
27
28
# File 'lib/insika/harvest/conversion_gate.rb', line 26

def snapshot_ref
  @snapshot_ref
end

#thresholdObject (readonly)

Returns the value of attribute threshold

Returns:

  • (Object)

    the current value of threshold



26
27
28
# File 'lib/insika/harvest/conversion_gate.rb', line 26

def threshold
  @threshold
end

#windowObject (readonly)

Returns the value of attribute window

Returns:

  • (Object)

    the current value of window



26
27
28
# File 'lib/insika/harvest/conversion_gate.rb', line 26

def window
  @window
end

Instance Method Details

#to_hObject

The candidate's conversion_gate record — the operator's review card shows the ruler (both rates), never just a verdict.



30
31
32
33
34
# File 'lib/insika/harvest/conversion_gate.rb', line 30

def to_h
  { "passed" => passed, "reason" => reason&.to_s, "metric" => metric,
    "window" => window, "current" => current, "baseline" => baseline,
    "threshold" => threshold, "snapshot_ref" => snapshot_ref }
end