class CaptureOptions
Attributes
options[R]
wraith[R]
Public Class Methods
new(options, wraith)
click to toggle source
# File lib/wraith/helpers/capture_options.rb, line 7 def initialize(options, wraith) @options = options @wraith = wraith end
Public Instance Methods
base_url()
click to toggle source
# File lib/wraith/helpers/capture_options.rb, line 33 def base_url base_urls(path) end
base_urls(path)
click to toggle source
# File lib/wraith/helpers/capture_options.rb, line 41 def base_urls(path) wraith.base_domain + path unless wraith.base_domain.nil? end
before_capture()
click to toggle source
# File lib/wraith/helpers/capture_options.rb, line 29 def before_capture options["before_capture"] ? convert_to_absolute(options["before_capture"]) : false end
casper?(options)
click to toggle source
# File lib/wraith/helpers/capture_options.rb, line 49 def casper?(options) options["path"] ? options["path"] : options end
compare_url()
click to toggle source
# File lib/wraith/helpers/capture_options.rb, line 37 def compare_url compare_urls(path) end
compare_urls(path)
click to toggle source
# File lib/wraith/helpers/capture_options.rb, line 45 def compare_urls(path) wraith.comp_domain + path unless wraith.comp_domain.nil? end
path()
click to toggle source
# File lib/wraith/helpers/capture_options.rb, line 12 def path casper?(options) end
resize()
click to toggle source
# File lib/wraith/helpers/capture_options.rb, line 20 def resize # path level, or YAML-file level `resize_or_reload` property value if options["resize_or_reload"] (options["resize_or_reload"] == "resize") else wraith.resize end end
selector()
click to toggle source
# File lib/wraith/helpers/capture_options.rb, line 16 def selector options["selector"] || "body" end