Class: SnapDiff::Comparison::Images

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#base_imageObject

Returns the value of attribute base_image

Returns:

  • (Object)

    the current value of base_image



38
39
40
# File 'lib/snap_diff/comparison.rb', line 38

def base_image
  @base_image
end

#base_image_pathObject

Returns the value of attribute base_image_path

Returns:

  • (Object)

    the current value of base_image_path



38
39
40
# File 'lib/snap_diff/comparison.rb', line 38

def base_image_path
  @base_image_path
end

#driverObject

Returns the value of attribute driver

Returns:

  • (Object)

    the current value of driver



38
39
40
# File 'lib/snap_diff/comparison.rb', line 38

def driver
  @driver
end

#new_imageObject

Returns the value of attribute new_image

Returns:

  • (Object)

    the current value of new_image



38
39
40
# File 'lib/snap_diff/comparison.rb', line 38

def new_image
  @new_image
end

#new_image_pathObject

Returns the value of attribute new_image_path

Returns:

  • (Object)

    the current value of new_image_path



38
39
40
# File 'lib/snap_diff/comparison.rb', line 38

def new_image_path
  @new_image_path
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



38
39
40
# File 'lib/snap_diff/comparison.rb', line 38

def options
  @options
end

Instance Method Details

#skip_areaObject



39
40
41
# File 'lib/snap_diff/comparison.rb', line 39

def skip_area
  options[:skip_area]
end