Class: AnalyticsOps::Workspace::Verification

Inherits:
Object
  • Object
show all
Defined in:
lib/analytics_ops/workspace.rb,
sig/analytics_ops.rbs

Overview

Immutable convergence result returned by verify.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(plan:) ⇒ Verification

Returns a new instance of Verification.

Parameters:



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

#convergedBoolean (readonly)

Returns the value of attribute converged.

Returns:

  • (Boolean)


14
15
16
# File 'lib/analytics_ops/workspace.rb', line 14

def converged
  @converged
end

#planPlan (readonly)

Returns the value of attribute plan.

Returns:



14
15
16
# File 'lib/analytics_ops/workspace.rb', line 14

def plan
  @plan
end

Instance Method Details

#to_hrecord

Returns:

  • (record)


22
23
24
# File 'lib/analytics_ops/workspace.rb', line 22

def to_h
  { "converged" => converged, "plan" => plan.to_h }
end