Module: Datadog::AppSec::Contrib::RestClient::Patcher
- Defined in:
- lib/datadog/appsec/contrib/rest_client/patcher.rb
Overview
Patcher for RestClient gem
Class Method Summary collapse
Class Method Details
.patch ⇒ Object
19 20 21 22 23 |
# File 'lib/datadog/appsec/contrib/rest_client/patcher.rb', line 19 def patch require_relative 'request_ssrf_detection_patch' ::RestClient::Request.prepend(RequestSSRFDetectionPatch) end |
.patched? ⇒ Boolean
11 12 13 |
# File 'lib/datadog/appsec/contrib/rest_client/patcher.rb', line 11 def patched? Patcher.instance_variable_get(:@patched) end |
.target_version ⇒ Object
15 16 17 |
# File 'lib/datadog/appsec/contrib/rest_client/patcher.rb', line 15 def target_version Integration.version end |