Class: RecordDiff::Results::ErroredResult
- Inherits:
-
AbstractResult
- Object
- AbstractResult
- RecordDiff::Results::ErroredResult
- Defined in:
- lib/record_diff/results/errored_result.rb
Overview
If the ID can be matched, but the two records have changed.
Instance Attribute Summary
Attributes inherited from AbstractResult
#after_compare, #after_original, #before_compare, #before_original, #before_transform, #id, #record_diff
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize(id:, after:, before:, after_compare:, before_compare:) ⇒ ErroredResult
constructor
A new instance of ErroredResult.
Methods inherited from AbstractResult
#added?, #changed?, #dropped?, #unchanged?
Constructor Details
#initialize(id:, after:, before:, after_compare:, before_compare:) ⇒ ErroredResult
Returns a new instance of ErroredResult.
7 8 9 10 11 12 13 |
# File 'lib/record_diff/results/errored_result.rb', line 7 def initialize(id:, after:, before:, after_compare:, before_compare:) @id = id @after_original = after @after_compare = after_compare @before_original = before @before_compare = before_compare end |
Instance Method Details
#error? ⇒ Boolean
15 16 17 |
# File 'lib/record_diff/results/errored_result.rb', line 15 def error? true end |