Class: Simulacrum::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/simulacrum/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
# File 'lib/simulacrum/configuration.rb', line 8

def initialize
  @config = OpenStruct.new
end

Instance Attribute Details

#acceptable_deltaObject (readonly)

Returns the value of attribute acceptable_delta.



5
6
7
# File 'lib/simulacrum/configuration.rb', line 5

def acceptable_delta
  @acceptable_delta
end

#candidate_filenameObject (readonly)

Returns the value of attribute candidate_filename.



5
6
7
# File 'lib/simulacrum/configuration.rb', line 5

def candidate_filename
  @candidate_filename
end

#capture_selectorObject (readonly)

Returns the value of attribute capture_selector.



5
6
7
# File 'lib/simulacrum/configuration.rb', line 5

def capture_selector
  @capture_selector
end

#diff_filenameObject (readonly)

Returns the value of attribute diff_filename.



5
6
7
# File 'lib/simulacrum/configuration.rb', line 5

def diff_filename
  @diff_filename
end

#images_pathObject (readonly)

Returns the value of attribute images_path.



5
6
7
# File 'lib/simulacrum/configuration.rb', line 5

def images_path
  @images_path
end

#reference_filenameObject (readonly)

Returns the value of attribute reference_filename.



5
6
7
# File 'lib/simulacrum/configuration.rb', line 5

def reference_filename
  @reference_filename
end

Instance Method Details

#configure(config) ⇒ Object



12
13
14
# File 'lib/simulacrum/configuration.rb', line 12

def configure(config)
  @config = OpenStruct.new(@config.to_h.merge!(config))
end