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
14 15 16 |
# File 'lib/guardrails/a11y_audit.rb', line 14 def column @column end |
#file ⇒ Object
Returns the value of attribute file
14 15 16 |
# File 'lib/guardrails/a11y_audit.rb', line 14 def file @file end |
#line ⇒ Object
Returns the value of attribute line
14 15 16 |
# File 'lib/guardrails/a11y_audit.rb', line 14 def line @line end |
#rule ⇒ Object
Returns the value of attribute rule
14 15 16 |
# File 'lib/guardrails/a11y_audit.rb', line 14 def rule @rule end |
#snippet ⇒ Object
Returns the value of attribute snippet
14 15 16 |
# File 'lib/guardrails/a11y_audit.rb', line 14 def snippet @snippet end |
Instance Method Details
#to_h ⇒ Object
15 16 17 |
# File 'lib/guardrails/a11y_audit.rb', line 15 def to_h { rule: rule, file: file, line: line, column: column, snippet: snippet } end |