Class: Simulacrum::Configuration
- Inherits:
-
Object
- Object
- Simulacrum::Configuration
- Defined in:
- lib/simulacrum/configuration.rb
Instance Attribute Summary collapse
-
#acceptable_delta ⇒ Object
readonly
Returns the value of attribute acceptable_delta.
-
#candidate_filename ⇒ Object
readonly
Returns the value of attribute candidate_filename.
-
#capture_selector ⇒ Object
readonly
Returns the value of attribute capture_selector.
-
#diff_filename ⇒ Object
readonly
Returns the value of attribute diff_filename.
-
#images_path ⇒ Object
readonly
Returns the value of attribute images_path.
-
#reference_filename ⇒ Object
readonly
Returns the value of attribute reference_filename.
Instance Method Summary collapse
- #configure(config) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_delta ⇒ Object (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_filename ⇒ Object (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_selector ⇒ Object (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_filename ⇒ Object (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_path ⇒ Object (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_filename ⇒ Object (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 |