class Axe::API::Results::Node
Public Instance Methods
failure_messages()
click to toggle source
# File lib/axe/api/results/node.rb, line 12 def failure_messages [selector_message, node_html] end
to_h()
click to toggle source
# File lib/axe/api/results/node.rb, line 16 def to_h { html: html, target: target } end
Private Instance Methods
node_html()
click to toggle source
# File lib/axe/api/results/node.rb, line 29 def node_html "HTML: #{html.gsub(/^\s*|\n*/, '')}" unless html.nil? end
selector_message()
click to toggle source
# File lib/axe/api/results/node.rb, line 25 def selector_message "Selector: #{Array(target).join(', ')}" end