Class: Axe::API::Results::Node

Inherits:
ValueObject show all
Defined in:
lib/axe/api/results/node.rb

Direct Known Subclasses

CheckedNode

Instance Method Summary collapse

Instance Method Details

#failure_messagesObject



12
13
14
# File 'lib/axe/api/results/node.rb', line 12

def failure_messages
  [selector_message, node_html]
end

#to_hObject



16
17
18
19
20
21
# File 'lib/axe/api/results/node.rb', line 16

def to_h
  {
    html: html,
    target: target,
  }
end