Module: Datadog::Contrib::RestClient::RequestPatch
- Defined in:
- lib/ddtrace/contrib/rest_client/request_patch.rb
Overview
RestClient RequestPatch
Defined Under Namespace
Modules: InstanceMethods, InstanceMethodsCompatibility
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/ddtrace/contrib/rest_client/request_patch.rb', line 11 def self.included(base) if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0.0') base.class_eval do alias_method :execute_without_datadog, :execute remove_method :execute include InstanceMethods end else base.send(:prepend, InstanceMethods) end end |