Class: Applitools::AccessibilitySettings
- Inherits:
-
Object
- Object
- Applitools::AccessibilitySettings
- Extended by:
- EyesConfigurationDSL
- Defined in:
- lib/applitools/core/accessibility_level.rb
Instance Attribute Summary collapse
-
#config_hash ⇒ Object
readonly
Returns the value of attribute config_hash.
-
#validation_errors ⇒ Object
Returns the value of attribute validation_errors.
Instance Method Summary collapse
-
#initialize(accessibility_level, guidelines_version) ⇒ AccessibilitySettings
constructor
A new instance of AccessibilitySettings.
- #json_data ⇒ Object
- #to_h ⇒ Object
-
#to_hash ⇒ Object
accessibilitySettings?: { level?: AccessibilityLevel guidelinesVersion?: AccessibilityGuidelinesVersion }.
Methods included from EyesConfigurationDSL
accessor_methods, boolean_field, collect_method, enum_field, int_field, methods_to_delegate, object_field, string_field
Constructor Details
#initialize(accessibility_level, guidelines_version) ⇒ AccessibilitySettings
Returns a new instance of AccessibilitySettings.
31 32 33 34 35 36 |
# File 'lib/applitools/core/accessibility_level.rb', line 31 def initialize(accessibility_level, guidelines_version) @config_hash = {} self.validation_errors = [] self.level = accessibility_level self.version = guidelines_version end |
Instance Attribute Details
#config_hash ⇒ Object (readonly)
Returns the value of attribute config_hash.
24 25 26 |
# File 'lib/applitools/core/accessibility_level.rb', line 24 def config_hash @config_hash end |
#validation_errors ⇒ Object
Returns the value of attribute validation_errors.
25 26 27 |
# File 'lib/applitools/core/accessibility_level.rb', line 25 def validation_errors @validation_errors end |
Instance Method Details
#json_data ⇒ Object
42 43 44 |
# File 'lib/applitools/core/accessibility_level.rb', line 42 def json_data to_h end |
#to_h ⇒ Object
38 39 40 |
# File 'lib/applitools/core/accessibility_level.rb', line 38 def to_h @config_hash end |
#to_hash ⇒ Object
accessibilitySettings?:
level?: AccessibilityLevel
guidelinesVersion?: AccessibilityGuidelinesVersion
50 51 52 53 54 55 |
# File 'lib/applitools/core/accessibility_level.rb', line 50 def to_hash { level: level, guidelinesVersion: version } end |