Sha256: 4514c4b85fa0c7931ad6cbfffe5d46722ad1152b885e280ae2b80d6b627b56c1

Contents?: true

Size: 304 Bytes

Versions: 1

Compression:

Stored size: 304 Bytes

Contents

# frozen_string_literal: true
module ZombieCheck
  module Ping
    class NetPing < PingSender
      def initialize(host)
        super host
      end

      def send
        icmp = Net::Ping::ICMP.new(host)
        icmp.ping
        self.duration = icmp.duration
        self
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zombie_check-0.1.3 lib/zombie_check/ping/ping_sender/net_ping.rb