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.



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

#levelObject

Returns the value of attribute level.



8
9
10
# File 'lib/applitools/core/test_results.rb', line 8

def level
  @level
end

#statusObject

Returns the value of attribute status.



8
9
10
# File 'lib/applitools/core/test_results.rb', line 8

def status
  @status
end

#versionObject

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

Returns:

  • (Boolean)


15
16
17
# File 'lib/applitools/core/test_results.rb', line 15

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