Class: Applitools::TestResults::AccessibilityStatus
- Inherits:
-
Object
- Object
- Applitools::TestResults::AccessibilityStatus
- Defined in:
- lib/applitools/core/test_results.rb
Instance Attribute Summary collapse
-
#level ⇒ Object
Returns the value of attribute level.
-
#status ⇒ Object
Returns the value of attribute status.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #failed? ⇒ Boolean
-
#initialize(hash = {}) ⇒ AccessibilityStatus
constructor
A new instance of AccessibilityStatus.
Constructor Details
#initialize(hash = {}) ⇒ AccessibilityStatus
Returns a new instance of AccessibilityStatus.
73 74 75 76 77 |
# File 'lib/applitools/core/test_results.rb', line 73 def initialize(hash = {}) self.status = hash['status'] self.level = hash['level'] self.version = hash['version'] end |
Instance Attribute Details
#level ⇒ Object
Returns the value of attribute level.
72 73 74 |
# File 'lib/applitools/core/test_results.rb', line 72 def level @level end |
#status ⇒ Object
Returns the value of attribute status.
72 73 74 |
# File 'lib/applitools/core/test_results.rb', line 72 def status @status end |
#version ⇒ Object
Returns the value of attribute version.
72 73 74 |
# File 'lib/applitools/core/test_results.rb', line 72 def version @version end |
Instance Method Details
#failed? ⇒ Boolean
79 80 81 |
# File 'lib/applitools/core/test_results.rb', line 79 def failed? status.downcase == 'Failed'.downcase end |