Class: Guardrails::VisualDiff::Finding
- Inherits:
-
Struct
- Object
- Struct
- Guardrails::VisualDiff::Finding
- 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
-
#baseline_path ⇒ Object
Returns the value of attribute baseline_path.
-
#current_path ⇒ Object
Returns the value of attribute current_path.
-
#diff_path ⇒ Object
Returns the value of attribute diff_path.
-
#mismatch_ratio ⇒ Object
Returns the value of attribute mismatch_ratio.
-
#scenario ⇒ Object
Returns the value of attribute scenario.
-
#selector ⇒ Object
Returns the value of attribute selector.
-
#url ⇒ Object
Returns the value of attribute url.
-
#viewport ⇒ Object
Returns the value of attribute viewport.
Instance Method Summary collapse
Instance Attribute Details
#baseline_path ⇒ Object
Returns the value of attribute baseline_path
22 23 24 |
# File 'lib/guardrails/visual_diff.rb', line 22 def baseline_path @baseline_path end |
#current_path ⇒ Object
Returns the value of attribute current_path
22 23 24 |
# File 'lib/guardrails/visual_diff.rb', line 22 def current_path @current_path end |
#diff_path ⇒ Object
Returns the value of attribute diff_path
22 23 24 |
# File 'lib/guardrails/visual_diff.rb', line 22 def diff_path @diff_path end |
#mismatch_ratio ⇒ Object
Returns the value of attribute mismatch_ratio
22 23 24 |
# File 'lib/guardrails/visual_diff.rb', line 22 def mismatch_ratio @mismatch_ratio end |
#scenario ⇒ Object
Returns the value of attribute scenario
22 23 24 |
# File 'lib/guardrails/visual_diff.rb', line 22 def scenario @scenario end |
#selector ⇒ Object
Returns the value of attribute selector
22 23 24 |
# File 'lib/guardrails/visual_diff.rb', line 22 def selector @selector end |
#url ⇒ Object
Returns the value of attribute url
22 23 24 |
# File 'lib/guardrails/visual_diff.rb', line 22 def url @url end |
#viewport ⇒ Object
Returns the value of attribute viewport
22 23 24 |
# File 'lib/guardrails/visual_diff.rb', line 22 def @viewport end |
Instance Method Details
#to_h ⇒ Object
33 34 35 |
# File 'lib/guardrails/visual_diff.rb', line 33 def to_h super end |