Class: ImageDiff::Differ::Diff
- Inherits:
-
Object
- Object
- ImageDiff::Differ::Diff
- Includes:
- Results
- Defined in:
- lib/image_diff/differ/differ.rb
Overview
Diff class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#snapshot ⇒ Object
readonly
Returns the value of attribute snapshot.
Instance Method Summary collapse
-
#initialize(snapshot) ⇒ Diff
constructor
A new instance of Diff.
- #reference ⇒ Object
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
#snapshot ⇒ Object (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
#reference ⇒ Object
24 25 26 |
# File 'lib/image_diff/differ/differ.rb', line 24 def reference @reference ||= @snapshot.reference_file end |