Class: RecordDiff::Results::UnchangedResult
- Inherits:
-
AbstractResult
- Object
- AbstractResult
- RecordDiff::Results::UnchangedResult
- Defined in:
- lib/record_diff/results/unchanged_result.rb
Overview
If the ID can be matched and the records haven’t 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
-
#initialize(id:, after:, before:, after_compare:, before_compare:) ⇒ UnchangedResult
constructor
A new instance of UnchangedResult.
- #unchanged? ⇒ Boolean
Methods inherited from AbstractResult
#added?, #changed?, #dropped?, #error?
Constructor Details
#initialize(id:, after:, before:, after_compare:, before_compare:) ⇒ UnchangedResult
Returns a new instance of UnchangedResult.
7 8 9 10 11 12 13 |
# File 'lib/record_diff/results/unchanged_result.rb', line 7 def initialize(id:, after:, before:, after_compare:, before_compare:) @id = id @before_original = before @before_compare = before_compare @after_original = after @after_compare = after_compare end |
Instance Method Details
#unchanged? ⇒ Boolean
15 16 17 |
# File 'lib/record_diff/results/unchanged_result.rb', line 15 def unchanged? true end |