class ProxyTester::Reporters::FetchUrls
Attributes
output[R]
Public Class Methods
new(output = $stdout)
click to toggle source
# File lib/proxy_tester/reporters/fetch_urls.rb, line 12 def initialize(output = $stdout) @output = output end
Public Instance Methods
data(d)
click to toggle source
# File lib/proxy_tester/reporters/fetch_urls.rb, line 20 def data(d) output.printf "%-10s: %s\n", 'proxy', d[:proxy] output.printf "%-10s: %s\n", 'url', d[:url] output.printf "%-10s: %s\n", 'status', d[:status] output.printf "%-10s:\n", 'headers' d[:headers].each do |h,v| output.printf " %-20s: %s\n", h, v end end
header()
click to toggle source
# File lib/proxy_tester/reporters/fetch_urls.rb, line 16 def header puts 'Results of run' end