Class: Applitools::TestResults::AccessibilityStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/applitools/core/test_results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#levelObject

Returns the value of attribute level.



72
73
74
# File 'lib/applitools/core/test_results.rb', line 72

def level
  @level
end

#statusObject

Returns the value of attribute status.



72
73
74
# File 'lib/applitools/core/test_results.rb', line 72

def status
  @status
end

#versionObject

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

Returns:

  • (Boolean)


79
80
81
# File 'lib/applitools/core/test_results.rb', line 79

def failed?
  status.downcase == 'Failed'.downcase
end