class ProxyTester::Data

Attributes

config[R]

Public Class Methods

new(config = ProxyTester.config) click to toggle source
# File lib/proxy_tester/data.rb, line 9
def initialize(config = ProxyTester.config)
  @config = config
end

Public Instance Methods

instance_binding() click to toggle source
# File lib/proxy_tester/data.rb, line 13
def instance_binding
  binding
end
lookup(variable) click to toggle source
# File lib/proxy_tester/data.rb, line 17
def lookup(variable)
  config.public_send variable.to_sym
rescue NoMethodError
  fail "Variable \"#{variable}\" not found."
end