Class: ImageDiff::Differ::Results::Result
- Inherits:
-
Object
- Object
- ImageDiff::Differ::Results::Result
- Defined in:
- lib/image_diff/differ/results/result.rb
Overview
Comparison result
Direct Known Subclasses
Instance Attribute Summary collapse
-
#snapshot ⇒ Object
readonly
Returns the value of attribute snapshot.
Instance Method Summary collapse
- #add_to_results_list ⇒ Object
-
#initialize(snapshot) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(snapshot) ⇒ Result
Returns a new instance of Result.
10 11 12 13 |
# File 'lib/image_diff/differ/results/result.rb', line 10 def initialize(snapshot) @snapshot = snapshot add_to_results_list end |
Instance Attribute Details
#snapshot ⇒ Object (readonly)
Returns the value of attribute snapshot.
8 9 10 |
# File 'lib/image_diff/differ/results/result.rb', line 8 def snapshot @snapshot end |
Instance Method Details
#add_to_results_list ⇒ Object
15 16 17 |
# File 'lib/image_diff/differ/results/result.rb', line 15 def add_to_results_list List.instance[@snapshot.filepath] << self end |