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.
9 10 11 12 13 |
# File 'lib/applitools/core/test_results.rb', line 9 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.
8 9 10 |
# File 'lib/applitools/core/test_results.rb', line 8 def level @level end |
#status ⇒ Object
Returns the value of attribute status.
8 9 10 |
# File 'lib/applitools/core/test_results.rb', line 8 def status @status end |
#version ⇒ Object
Returns the value of attribute version.
8 9 10 |
# File 'lib/applitools/core/test_results.rb', line 8 def version @version end |
Instance Method Details
#failed? ⇒ Boolean
15 16 17 |
# File 'lib/applitools/core/test_results.rb', line 15 def failed? status.downcase == 'Failed'.downcase end |