Sha256: 65f28df0dde0a49ac8e36d6364e61a6a442e075dd78e21d2b7d9087d084c9973
Contents?: true
Size: 624 Bytes
Versions: 2
Compression:
Stored size: 624 Bytes
Contents
module Pagetience class Configuration VALID_PROPERTIES = [ :timeout, :polling, :platform ] attr_accessor *VALID_PROPERTIES # Default timeout in seconds DEFAULT_TIMEOUT = 30 # Default polling in seconds DEFAULT_POLLING = 1 # Default element platform DEFAULT_PLATFORM = Pagetience::Platform::PageObjectGem def initialize @timeout = DEFAULT_TIMEOUT @polling = DEFAULT_POLLING @platform = DEFAULT_PLATFORM end def method_missing(sym, *args) raise Pagetience::ConfigurationError, "Unknown property #{sym}." end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pagetience-0.4.3 | lib/pagetience/configuration.rb |
pagetience-0.4.2 | lib/pagetience/configuration.rb |