Class: Axe::API::Results
- Inherits:
-
ValueObject
- Object
- ValueObject
- Axe::API::Results
- Defined in:
- lib/axe/api/results.rb,
lib/axe/api/results/node.rb,
lib/axe/api/results/rule.rb,
lib/axe/api/results/check.rb,
lib/axe/api/results/checked_node.rb
Defined Under Namespace
Classes: Check, CheckedNode, Node, Rule
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_message ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/axe/api/results.rb', line 21 def [ "", , "", , ].flatten.join("\n") end |
#timestamp=(ts) ⇒ Object
42 43 44 |
# File 'lib/axe/api/results.rb', line 42 def (ts) @timestamp = ts end |
#to_h ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/axe/api/results.rb', line 30 def to_h { inapplicable: inapplicable.map(&:to_h), incomplete: incomplete.map(&:to_h), passes: passes.map(&:to_h), testEngine: testEngine, timestamp: , url: url, violations: violations.map(&:to_h), } end |