Class: Retab::ReconciliationPathAlignment
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::ReconciliationPathAlignment
- 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
-
#canonical_path ⇒ Object
Returns the value of attribute canonical_path.
-
#source_paths ⇒ Object
Returns the value of attribute source_paths.
Instance Method Summary collapse
-
#initialize(json) ⇒ ReconciliationPathAlignment
constructor
A new instance of ReconciliationPathAlignment.
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_path ⇒ Object
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_paths ⇒ Object
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 |