Class: Insika::Harvest::ConversionGate::Result
- Inherits:
-
Data
- Object
- Data
- Insika::Harvest::ConversionGate::Result
- Defined in:
- lib/insika/harvest/conversion_gate.rb
Instance Attribute Summary collapse
-
#baseline ⇒ Object
readonly
Returns the value of attribute baseline.
-
#current ⇒ Object
readonly
Returns the value of attribute current.
-
#metric ⇒ Object
readonly
Returns the value of attribute metric.
-
#passed ⇒ Object
readonly
Returns the value of attribute passed.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#snapshot_ref ⇒ Object
readonly
Returns the value of attribute snapshot_ref.
-
#threshold ⇒ Object
readonly
Returns the value of attribute threshold.
-
#window ⇒ Object
readonly
Returns the value of attribute window.
Instance Method Summary collapse
-
#to_h ⇒ Object
The candidate's conversion_gate record — the operator's review card shows the ruler (both rates), never just a verdict.
Instance Attribute Details
#baseline ⇒ Object (readonly)
Returns the value of attribute baseline
26 27 28 |
# File 'lib/insika/harvest/conversion_gate.rb', line 26 def baseline @baseline end |
#current ⇒ Object (readonly)
Returns the value of attribute current
26 27 28 |
# File 'lib/insika/harvest/conversion_gate.rb', line 26 def current @current end |
#metric ⇒ Object (readonly)
Returns the value of attribute metric
26 27 28 |
# File 'lib/insika/harvest/conversion_gate.rb', line 26 def metric @metric end |
#passed ⇒ Object (readonly)
Returns the value of attribute passed
26 27 28 |
# File 'lib/insika/harvest/conversion_gate.rb', line 26 def passed @passed end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
26 27 28 |
# File 'lib/insika/harvest/conversion_gate.rb', line 26 def reason @reason end |
#snapshot_ref ⇒ Object (readonly)
Returns the value of attribute snapshot_ref
26 27 28 |
# File 'lib/insika/harvest/conversion_gate.rb', line 26 def snapshot_ref @snapshot_ref end |
#threshold ⇒ Object (readonly)
Returns the value of attribute threshold
26 27 28 |
# File 'lib/insika/harvest/conversion_gate.rb', line 26 def threshold @threshold end |
#window ⇒ Object (readonly)
Returns the value of attribute window
26 27 28 |
# File 'lib/insika/harvest/conversion_gate.rb', line 26 def window @window end |
Instance Method Details
#to_h ⇒ Object
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 |