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

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

Direct Known Subclasses

CheckedNode

Constant Summary

Constants inherited from ValueObject

ValueObject::BOOLEAN_FALSE_STRINGS, ValueObject::BOOLEAN_TRUE_STRINGS

Instance Method Summary collapse

Methods inherited from ValueObject

#==, #[], attribute, attributes, #attributes, #hash, #initialize, #inspect, #to_hash, values

Constructor Details

This class inherits a constructor from Axe::API::ValueObject

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