Class: RecordDiff::Results::DroppedResult
- Inherits:
-
AbstractResult
- Object
- AbstractResult
- RecordDiff::Results::DroppedResult
- Defined in:
- lib/record_diff/results/dropped_result.rb
Overview
Dropped result, if the ID is not matched in the new data.
Instance Attribute Summary
Attributes inherited from AbstractResult
#after_compare, #after_original, #before_compare, #before_original, #before_transform, #id, #record_diff
Instance Method Summary collapse
- #dropped? ⇒ Boolean
-
#initialize(id:, before:, before_compare:) ⇒ DroppedResult
constructor
A new instance of DroppedResult.
Methods inherited from AbstractResult
#added?, #changed?, #error?, #unchanged?
Constructor Details
#initialize(id:, before:, before_compare:) ⇒ DroppedResult
Returns a new instance of DroppedResult.
7 8 9 10 11 |
# File 'lib/record_diff/results/dropped_result.rb', line 7 def initialize(id:, before:, before_compare:) @id = id @before_original = before @before_compare = before_compare end |
Instance Method Details
#dropped? ⇒ Boolean
13 14 15 |
# File 'lib/record_diff/results/dropped_result.rb', line 13 def dropped? true end |