This library is deprecated, and will no longer receive updates. Please use the
google-cloud-web_risk
library instead. For detailed information on the differences, see the
migration guide.
require"logger"moduleMyLoggerLOGGER=Logger.new$stderr,level:Logger::WARNdefloggerLOGGERendend# Define a gRPC module-level logger method before grpc/logconfig.rb loads.moduleGRPCextendMyLoggerend
Supported Ruby Versions
This library is supported on Ruby 2.4+.
Google provides official support for Ruby versions that are actively supported
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
in security maintenance, and not end of life. Currently, this means Ruby 2.4
and later. Older versions of Ruby may still work, but are unsupported and not
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
about the Ruby support schedule.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["Ruby Client for Web Risk API\n============================\n\n**This library is deprecated, and will no longer receive updates. Please use the\n[`google-cloud-web_risk`](https://rubygems.org/gems/google-cloud-web_risk)\nlibrary instead. For detailed information on the differences, see the\n[migration guide](https://googleapis.dev/ruby/google-cloud-web_risk/latest/file.MIGRATING.html).**\n\n[Web Risk API](https://cloud.google.com/web-risk):\n\n- [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-webrisk/latest)\n- [Product Documentation](https://cloud.google.com/web-risk)\n\nQuick Start\n-----------\n\nIn order to use this library, you first need to go through the following\nsteps:\n\n1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)\n2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)\n3. [Enable the Web Risk API.](https://console.cloud.google.com/apis/library/webrisk.googleapis.com)\n4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-webrisk/latest/file.AUTHENTICATION.html)\n\n### Installation\n\n $ gem install google-cloud-webrisk\n\n### Next Steps\n\n- Read the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-webrisk/latest) for Web Risk API to see other available methods on the client.\n- Read the [Web Risk API Product documentation](https://cloud.google.com/web-risk) to learn more about the product and see How-to Guides.\n- View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md) to see the full list of Cloud APIs that we cover.\n\nEnabling Logging\n----------------\n\nTo enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.\nThe logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,\nor a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)\nthat will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)\nand the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.\n\nConfiguring a Ruby stdlib logger: \n\n```ruby\nrequire \"logger\"\n\nmodule MyLogger\n LOGGER = Logger.new $stderr, level: Logger::WARN\n def logger\n LOGGER\n end\nend\n\n# Define a gRPC module-level logger method before grpc/logconfig.rb loads.\nmodule GRPC\n extend MyLogger\nend\n```\n\nSupported Ruby Versions\n-----------------------\n\nThis library is supported on Ruby 2.4+.\n\nGoogle provides official support for Ruby versions that are actively supported\nby Ruby Core---that is, Ruby versions that are either in normal maintenance or\nin security maintenance, and not end of life. Currently, this means Ruby 2.4\nand later. Older versions of Ruby *may* still work, but are unsupported and not\nrecommended. See \u003chttps://www.ruby-lang.org/en/downloads/branches/\u003e for details\nabout the Ruby support schedule."]]