Class: Applitools::AbstractConfiguration

Inherits:
Object
  • Object
show all
Extended by:
EyesConfigurationDSL
Defined in:
lib/applitools/core/abstract_configuration.rb

Direct Known Subclasses

EyesBaseConfiguration

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from EyesConfigurationDSL

accessor_methods, boolean_field, collect_method, enum_field, int_field, methods_to_delegate, object_field, string_field

Constructor Details

#initializeAbstractConfiguration

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_hashObject (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_errorsObject

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