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

Version Path
lg_pod_plugin-1.2.2 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.2.1 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.2.0.1 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.2.0.0 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.1.8.2 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.1.8.1 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.1.7.4 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.1.7.3 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.1.6.7 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.1.6.6 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.1.6.5 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.1.6.4 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.1.6.3 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.1.6.2 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.1.6.0 lib/lg_pod_plugin/net/net-ping.rb
lg_pod_plugin-1.1.5.9 lib/lg_pod_plugin/net/net-ping.rb