Method: ProxyAPI::AvailableProxy#available?

Defined in:
app/lib/proxy_api/available_proxy.rb

#available?Boolean

Returns:

  • (Boolean)


18
19
20
21
22
23
24
25
# File 'app/lib/proxy_api/available_proxy.rb', line 18

def available?
  begin
    return true if has_scap_feature? && minimum_version
  rescue *HTTP_ERRORS
    return false
  end
  false
end