Sha256: 450ddc7469f60183a3eb65c6b3b862af23251d3efccf75ce33512f92d345cc01
Contents?: true
Size: 425 Bytes
Versions: 16
Compression:
Stored size: 425 Bytes
Contents
require 'uri' require 'resolv' require "ipaddr" module LgPodPlugin class Ping attr_accessor :ip attr_accessor :network_ok attr_accessor :uri def initialize(url) uri = LURI.new(url) if uri.host self.uri = uri self.ip = uri.host self.network_ok = true else self.uri = nil self.ip = nil self.network_ok = false end end end end
Version data entries
16 entries across 16 versions & 1 rubygems