Class: Guardrails::VisualDiff::Finding

Inherits:
Struct
  • Object
show all
Defined in:
lib/guardrails/visual_diff.rb

Overview

Normalized across every adapter. Fields adapter-specific shapes don’t supply are nil — consumers should not assume presence.

Defined before the adapter requires so the constant exists by the time ‘lib/guardrails/visual_diff/snap_diff.rb` loads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#baseline_pathObject

Returns the value of attribute baseline_path

Returns:

  • (Object)

    the current value of baseline_path



22
23
24
# File 'lib/guardrails/visual_diff.rb', line 22

def baseline_path
  @baseline_path
end

#current_pathObject

Returns the value of attribute current_path

Returns:

  • (Object)

    the current value of current_path



22
23
24
# File 'lib/guardrails/visual_diff.rb', line 22

def current_path
  @current_path
end

#diff_pathObject

Returns the value of attribute diff_path

Returns:

  • (Object)

    the current value of diff_path



22
23
24
# File 'lib/guardrails/visual_diff.rb', line 22

def diff_path
  @diff_path
end

#mismatch_ratioObject

Returns the value of attribute mismatch_ratio

Returns:

  • (Object)

    the current value of mismatch_ratio



22
23
24
# File 'lib/guardrails/visual_diff.rb', line 22

def mismatch_ratio
  @mismatch_ratio
end

#scenarioObject

Returns the value of attribute scenario

Returns:

  • (Object)

    the current value of scenario



22
23
24
# File 'lib/guardrails/visual_diff.rb', line 22

def scenario
  @scenario
end

#selectorObject

Returns the value of attribute selector

Returns:

  • (Object)

    the current value of selector



22
23
24
# File 'lib/guardrails/visual_diff.rb', line 22

def selector
  @selector
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



22
23
24
# File 'lib/guardrails/visual_diff.rb', line 22

def url
  @url
end

#viewportObject

Returns the value of attribute viewport

Returns:

  • (Object)

    the current value of viewport



22
23
24
# File 'lib/guardrails/visual_diff.rb', line 22

def viewport
  @viewport
end

Instance Method Details

#to_hObject



33
34
35
# File 'lib/guardrails/visual_diff.rb', line 33

def to_h
  super
end