Class: Guardrails::A11yAudit::Finding
- Inherits:
-
Struct
- Object
- Struct
- Guardrails::A11yAudit::Finding
- Defined in:
- lib/guardrails/a11y_audit.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#file ⇒ Object
Returns the value of attribute file.
-
#line ⇒ Object
Returns the value of attribute line.
-
#rule ⇒ Object
Returns the value of attribute rule.
-
#snippet ⇒ Object
Returns the value of attribute snippet.
Instance Method Summary collapse
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column
13 14 15 |
# File 'lib/guardrails/a11y_audit.rb', line 13 def column @column end |
#file ⇒ Object
Returns the value of attribute file
13 14 15 |
# File 'lib/guardrails/a11y_audit.rb', line 13 def file @file end |
#line ⇒ Object
Returns the value of attribute line
13 14 15 |
# File 'lib/guardrails/a11y_audit.rb', line 13 def line @line end |
#rule ⇒ Object
Returns the value of attribute rule
13 14 15 |
# File 'lib/guardrails/a11y_audit.rb', line 13 def rule @rule end |
#snippet ⇒ Object
Returns the value of attribute snippet
13 14 15 |
# File 'lib/guardrails/a11y_audit.rb', line 13 def snippet @snippet end |
Instance Method Details
#to_h ⇒ Object
14 15 16 |
# File 'lib/guardrails/a11y_audit.rb', line 14 def to_h { rule: rule, file: file, line: line, column: column, snippet: snippet } end |