class Accessibility::Rule
Attributes
element_names[R]
severity[R]
status[R]
title[R]
Public Class Methods
new(data)
click to toggle source
An Accessibility::Rule
represents a single Accessibility
Developer Tools audit rule that is checked on the document.
A Rule
has the following attributes:
* status, which can be "NA" (not applicable), "PASS", or "FAIL" * severity, which can be "Severe" or "Warning" * title, which is a description of the rule * element_names, an array of strings, each of them being a snippet of the document where the issue was found
# File lib/accessibility/rule.rb, line 17 def initialize(data) @element_names = data['element_names'] @severity = data['severity'] @status = data['status'] @title = data['title'] end