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
17 18 19 20 21 22 23 |
# File 'lib/datadog/appsec/contrib/rest_client/patcher.rb', line 17 def self.patch require_relative "request_ssrf_detection_patch" ::RestClient::Request.prepend(RequestSSRFDetectionPatch) Patcher.instance_variable_set(:@patched, true) end |
.patched? ⇒ Boolean
9 10 11 |
# File 'lib/datadog/appsec/contrib/rest_client/patcher.rb', line 9 def self.patched? !!Patcher.instance_variable_get(:@patched) end |
.target_version ⇒ Object
13 14 15 |
# File 'lib/datadog/appsec/contrib/rest_client/patcher.rb', line 13 def self.target_version Integration.version end |