Class: ImageDiff::Differ::Diff

Inherits:
Object
  • Object
show all
Includes:
Results
Defined in:
lib/image_diff/differ/differ.rb

Overview

Diff class

Direct Known Subclasses

ImageDiff

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(snapshot) ⇒ Diff

Returns a new instance of Diff.



19
20
21
22
# File 'lib/image_diff/differ/differ.rb', line 19

def initialize(snapshot)
  @snapshot = snapshot
  result
end

Instance Attribute Details

#snapshotObject (readonly)

Returns the value of attribute snapshot.



17
18
19
# File 'lib/image_diff/differ/differ.rb', line 17

def snapshot
  @snapshot
end

Instance Method Details

#referenceObject



24
25
26
# File 'lib/image_diff/differ/differ.rb', line 24

def reference
  @reference ||= @snapshot.reference_file
end