Module: VCR::InternetConnection

Extended by:
InternetConnection
Included in:
InternetConnection
Defined in:
lib/vcr/util/internet_connection.rb

Constant Summary collapse

EXAMPLE_HOST =
"example.com"

Instance Method Summary collapse

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


37
38
39
40
# File 'lib/vcr/util/internet_connection.rb', line 37

def available?
  @available = VCR::Ping.pingecho(EXAMPLE_HOST, 1, 80) unless defined?(@available)
  @available
end