Class: AnalyticsOps::Workspace::Verification
- Inherits:
-
Object
- Object
- AnalyticsOps::Workspace::Verification
- Defined in:
- lib/analytics_ops/workspace.rb,
sig/analytics_ops.rbs
Overview
Immutable convergence result returned by verify.
Instance Attribute Summary collapse
-
#converged ⇒ Boolean
readonly
Returns the value of attribute converged.
-
#plan ⇒ Plan
readonly
Returns the value of attribute plan.
Instance Method Summary collapse
-
#initialize(plan:) ⇒ Verification
constructor
A new instance of Verification.
- #to_h ⇒ record
Constructor Details
#initialize(plan:) ⇒ Verification
Returns a new instance of Verification.
16 17 18 19 20 |
# File 'lib/analytics_ops/workspace.rb', line 16 def initialize(plan:) @plan = plan @converged = !plan.drift? freeze end |
Instance Attribute Details
#converged ⇒ Boolean (readonly)
Returns the value of attribute converged.
14 15 16 |
# File 'lib/analytics_ops/workspace.rb', line 14 def converged @converged end |
#plan ⇒ Plan (readonly)
Returns the value of attribute plan.
14 15 16 |
# File 'lib/analytics_ops/workspace.rb', line 14 def plan @plan end |
Instance Method Details
#to_h ⇒ record
22 23 24 |
# File 'lib/analytics_ops/workspace.rb', line 22 def to_h { "converged" => converged, "plan" => plan.to_h } end |