Class: Axe::API::Results::Check

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

Instance Method Summary collapse

Instance Method Details

#failure_messageObject



16
17
18
# File 'lib/axe/api/results/check.rb', line 16

def failure_message
  message
end

#to_hObject



20
21
22
23
24
25
26
27
28
# File 'lib/axe/api/results/check.rb', line 20

def to_h
  {
    data: data,
    id: id,
    impact: impact,
    message: message,
    relatedNodes: relatedNodes.map(&:to_h),
  }
end