lib/simulacrum/configuration.rb in simulacrum-0.0.2 vs lib/simulacrum/configuration.rb in simulacrum-0.0.3
- old
+ new
@@ -1,11 +1,11 @@
require 'ostruct'
module Simulacrum
class Configuration
attr_reader :images_path, :reference_filename, :candidate_filename,
- :diff_filename, :capture_selector, :acceptable_delta
+ :diff_filename, :capture_selector, :acceptable_delta, :capture_delay
def initialize
@config = OpenStruct.new
end
@@ -27,14 +27,18 @@
def diff_filename
@config.diff_filename || 'diff.png'
end
- def capture_selector
- @config.capture_selector || 'html'
+ def capture_delay
+ @config.capture_delay || 0
end
def acceptable_delta
@config.acceptable_delta || 0.0
+ end
+
+ def remote_url
+ @config.remote_url
end
end
end