Class: RecordDiff::Results::DroppedResult

Inherits:
AbstractResult show all
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

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

Returns:

  • (Boolean)


13
14
15
# File 'lib/record_diff/results/dropped_result.rb', line 13

def dropped?
  true
end