Method: ChemistryKit::Configuration#initialize

Defined in:
lib/chemistrykit/configuration.rb

#initialize(hash) ⇒ Configuration

Returns a new instance of Configuration.



18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/chemistrykit/configuration.rb', line 18

def initialize(hash)
  # set defaults
  @concurrency = 1
  @selenium_connect = {}
  @screenshot_on_fail = false
  @log = OpenStruct.new
  @log.path = 'evidence'
  @log.results_file = 'results_junit.xml'
  @log.format = 'JUnit'

  # overide with argument
  populate_with_hash hash
end