Class: Datadog::AppSec::Contrib::RestClient::Integration
- Inherits:
-
Object
- Object
- Datadog::AppSec::Contrib::RestClient::Integration
show all
- Includes:
- Integration
- Defined in:
- lib/datadog/appsec/contrib/rest_client/integration.rb
Overview
This class defines properties of rest-client AppSec integration
Constant Summary
collapse
- MINIMUM_VERSION =
Gem::Version.new('1.8')
Class Method Summary
collapse
Instance Method Summary
collapse
included, register, registry
Class Method Details
.auto_instrument? ⇒ Boolean
34
35
36
|
# File 'lib/datadog/appsec/contrib/rest_client/integration.rb', line 34
def self.auto_instrument?
false
end
|
.compatible? ⇒ Boolean
30
31
32
|
# File 'lib/datadog/appsec/contrib/rest_client/integration.rb', line 30
def self.compatible?
super && version >= MINIMUM_VERSION
end
|
.gem_name ⇒ Object
18
19
20
|
# File 'lib/datadog/appsec/contrib/rest_client/integration.rb', line 18
def self.gem_name
'rest-client'
end
|
.loaded? ⇒ Boolean
26
27
28
|
# File 'lib/datadog/appsec/contrib/rest_client/integration.rb', line 26
def self.loaded?
!defined?(::RestClient::Request).nil?
end
|
.version ⇒ Object
22
23
24
|
# File 'lib/datadog/appsec/contrib/rest_client/integration.rb', line 22
def self.version
Gem.loaded_specs['rest-client']&.version
end
|
Instance Method Details
#patcher ⇒ Object
38
39
40
|
# File 'lib/datadog/appsec/contrib/rest_client/integration.rb', line 38
def patcher
Patcher
end
|