Module: BrainzLab::Instrumentation::NetHttp
- Defined in:
- lib/brainzlab/instrumentation/net_http.rb
Defined Under Namespace
Modules: Patch
Class Method Summary collapse
- .install! ⇒ Object
- .installed? ⇒ Boolean
-
.reset! ⇒ Object
For testing purposes.
Class Method Details
.install! ⇒ Object
9 10 11 12 13 14 |
# File 'lib/brainzlab/instrumentation/net_http.rb', line 9 def install! return if @installed ::Net::HTTP.prepend(Patch) @installed = true end |
.installed? ⇒ Boolean
16 17 18 |
# File 'lib/brainzlab/instrumentation/net_http.rb', line 16 def installed? @installed end |
.reset! ⇒ Object
For testing purposes
21 22 23 |
# File 'lib/brainzlab/instrumentation/net_http.rb', line 21 def reset! @installed = false end |