lib/rogue_one/ping.rb in rogue_one-0.4.2 vs lib/rogue_one/ping.rb in rogue_one-0.4.3
- old
+ new
@@ -2,11 +2,10 @@
require "resolv"
module RogueOne
class Ping
- attr_reader :resolver
- attr_reader :nameserver
+ attr_reader :resolver, :nameserver
def initialize(nameserver)
@nameserver = nameserver
@resolver = Resolv::DNS.new(nameserver: [nameserver])
@resolver.timeouts = 5