Class: Retab::ReconciliationPathAlignment

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/retab/consensus/reconciliation_path_alignment.rb

Constant Summary collapse

HASH_ATTRS =
{
  canonical_path: :canonical_path,
  source_paths: :source_paths
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ReconciliationPathAlignment

Returns a new instance of ReconciliationPathAlignment.



18
19
20
21
22
23
# File 'lib/retab/consensus/reconciliation_path_alignment.rb', line 18

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @canonical_path = hash[:canonical_path]
  @source_paths = (hash[:source_paths] || [])
end

Instance Attribute Details

#canonical_pathObject

Returns the value of attribute canonical_path.



13
14
15
# File 'lib/retab/consensus/reconciliation_path_alignment.rb', line 13

def canonical_path
  @canonical_path
end

#source_pathsObject

Returns the value of attribute source_paths.



13
14
15
# File 'lib/retab/consensus/reconciliation_path_alignment.rb', line 13

def source_paths
  @source_paths
end