class Simulacrum::Configuration

Configuration Class for managing config of the suite

Constants

COMPONENT_DEFAULTS

Attributes

candidate_filename[R]
capture_delay[R]
capture_selector[R]
default_browser[R]
delta_threshold[R]
diff_filename[R]
reference_filename[R]
references_path[R]
window_size[R]

Public Class Methods

new() click to toggle source
# File lib/simulacrum/configuration.rb, line 18
def initialize
  @config = OpenStruct.new(component: OpenStruct.new(COMPONENT_DEFAULTS))
end

Public Instance Methods

build_name() click to toggle source
# File lib/simulacrum/configuration.rb, line 56
def build_name
  @config.build_name || ''
end
configure(config) click to toggle source
# File lib/simulacrum/configuration.rb, line 22
def configure(config)
  @config = OpenStruct.new(@config.to_h.merge!(config))
end
project_name() click to toggle source
# File lib/simulacrum/configuration.rb, line 60
def project_name
  @config.project_name || 'Simulacrum'
end