Class: SnapDiff::Comparison::Images
- Inherits:
-
Struct
- Object
- Struct
- SnapDiff::Comparison::Images
- Defined in:
- lib/snap_diff/comparison.rb
Overview
Holds the two images (and their paths/options/driver) being compared (ADR-008 step 5: ex-Capybara::Screenshot::Diff::Comparison struct).
Instance Attribute Summary collapse
-
#base_image ⇒ Object
Returns the value of attribute base_image.
-
#base_image_path ⇒ Object
Returns the value of attribute base_image_path.
-
#driver ⇒ Object
Returns the value of attribute driver.
-
#new_image ⇒ Object
Returns the value of attribute new_image.
-
#new_image_path ⇒ Object
Returns the value of attribute new_image_path.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#base_image ⇒ Object
Returns the value of attribute base_image
38 39 40 |
# File 'lib/snap_diff/comparison.rb', line 38 def base_image @base_image end |
#base_image_path ⇒ Object
Returns the value of attribute base_image_path
38 39 40 |
# File 'lib/snap_diff/comparison.rb', line 38 def base_image_path @base_image_path end |
#driver ⇒ Object
Returns the value of attribute driver
38 39 40 |
# File 'lib/snap_diff/comparison.rb', line 38 def driver @driver end |
#new_image ⇒ Object
Returns the value of attribute new_image
38 39 40 |
# File 'lib/snap_diff/comparison.rb', line 38 def new_image @new_image end |
#new_image_path ⇒ Object
Returns the value of attribute new_image_path
38 39 40 |
# File 'lib/snap_diff/comparison.rb', line 38 def new_image_path @new_image_path end |
#options ⇒ Object
Returns the value of attribute options
38 39 40 |
# File 'lib/snap_diff/comparison.rb', line 38 def @options end |
Instance Method Details
#skip_area ⇒ Object
39 40 41 |
# File 'lib/snap_diff/comparison.rb', line 39 def skip_area [:skip_area] end |