module Runscope::Configuration
Constants
Public Class Methods
extended(base)
click to toggle source
When this module is extended, set all configuration options to their default values
# File lib/runscope-rb/configuration.rb, line 21 def self.extended(base) base.reset end
Public Instance Methods
configure() { |self| ... }
click to toggle source
Convenience method to allow configuration options to be set in a block
# File lib/runscope-rb/configuration.rb, line 26 def configure yield self end
options()
click to toggle source
Create a hash of options and their values
# File lib/runscope-rb/configuration.rb, line 31 def options Hash[VALID_OPTIONS_KEYS.map {|key| [key, send(key)] }] end
reset()
click to toggle source
# File lib/runscope-rb/configuration.rb, line 35 def reset self.bucket = DEFAULT_BUCKET self.domains = DEFAULT_DOMAINS self.enabled = DEFAULT_ENABLED end