Class: Applitools::AbstractConfiguration
- Inherits:
-
Object
- Object
- Applitools::AbstractConfiguration
- Extended by:
- EyesConfigurationDSL
- Defined in:
- lib/applitools/core/abstract_configuration.rb
Direct Known Subclasses
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 ⇒ AbstractConfiguration
constructor
A new instance of AbstractConfiguration.
Methods included from EyesConfigurationDSL
accessor_methods, boolean_field, collect_method, enum_field, int_field, methods_to_delegate, object_field, string_field
Constructor Details
#initialize ⇒ AbstractConfiguration
Returns a new instance of AbstractConfiguration.
9 10 11 12 13 14 15 16 |
# File 'lib/applitools/core/abstract_configuration.rb', line 9 def initialize @config_hash = {} self.validation_errors = {} default_config = self.class.default_config default_config.keys.each do |k| send "#{k}=", default_config[k] end end |
Instance Attribute Details
#config_hash ⇒ Object (readonly)
Returns the value of attribute config_hash.
5 6 7 |
# File 'lib/applitools/core/abstract_configuration.rb', line 5 def config_hash @config_hash end |
#validation_errors ⇒ Object
Returns the value of attribute validation_errors.
6 7 8 |
# File 'lib/applitools/core/abstract_configuration.rb', line 6 def validation_errors @validation_errors end |