Class: Comparer
- Inherits:
-
Object
- Object
- Comparer
- Defined in:
- lib/controller/comparer.rb
Instance Attribute Summary collapse
-
#difference ⇒ Object
Returns the value of attribute difference.
Instance Method Summary collapse
-
#initialize(base, new, difference_path, baseurl, urls, resolutions, screenshot_path) ⇒ Comparer
constructor
A new instance of Comparer.
Constructor Details
#initialize(base, new, difference_path, baseurl, urls, resolutions, screenshot_path) ⇒ Comparer
Returns a new instance of Comparer.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/controller/comparer.rb', line 8 def initialize(base, new, difference_path, baseurl, urls, resolutions, screenshot_path) @base = base @new = new @baseurl = baseurl @urls = urls @resolutions = resolutions @absolute_image_path = screenshot_path @difference_path = difference_path FileUtils.mkdir_p difference_path compare_images end |
Instance Attribute Details
#difference ⇒ Object
Returns the value of attribute difference.
6 7 8 |
# File 'lib/controller/comparer.rb', line 6 def difference @difference end |