Class: RecordDiff::Results::AbstractResult

Inherits:
Object
  • Object
show all
Defined in:
lib/record_diff/results/abstract_result.rb

Overview

Abstract result implementation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#after_compareHash (readonly) Also known as: after

Returns:

  • (Hash)


9
10
11
# File 'lib/record_diff/results/abstract_result.rb', line 9

def after_compare
  @after_compare
end

#after_originalObject (readonly)

Returns the value of attribute after_original.



7
8
9
# File 'lib/record_diff/results/abstract_result.rb', line 7

def after_original
  @after_original
end

#before_compareHash (readonly) Also known as: before

Returns:

  • (Hash)


9
10
11
# File 'lib/record_diff/results/abstract_result.rb', line 9

def before_compare
  @before_compare
end

#before_originalObject (readonly)

Returns the value of attribute before_original.



7
8
9
# File 'lib/record_diff/results/abstract_result.rb', line 7

def before_original
  @before_original
end

#before_transformArray<Symbol>, Proc (readonly)

Returns:

  • (Array<Symbol>, Proc)


11
12
13
# File 'lib/record_diff/results/abstract_result.rb', line 11

def before_transform
  @before_transform
end

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/record_diff/results/abstract_result.rb', line 7

def id
  @id
end

#record_diffArray<Symbol>, Proc (readonly)

Returns:

  • (Array<Symbol>, Proc)


11
12
13
# File 'lib/record_diff/results/abstract_result.rb', line 11

def record_diff
  @record_diff
end

Instance Method Details

#added?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/record_diff/results/abstract_result.rb', line 16

def added?
  false
end

#changed?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/record_diff/results/abstract_result.rb', line 24

def changed?
  false
end

#dropped?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/record_diff/results/abstract_result.rb', line 28

def dropped?
  false
end

#error?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/record_diff/results/abstract_result.rb', line 32

def error?
  false
end

#unchanged?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/record_diff/results/abstract_result.rb', line 20

def unchanged?
  false
end