Class: IoMonitor::NetHttpAdapter
- Inherits:
-
BaseAdapter
- Object
- BaseAdapter
- IoMonitor::NetHttpAdapter
- Defined in:
- lib/io_monitor/adapters/net_http_adapter.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.kind ⇒ Object
8 9 10 |
# File 'lib/io_monitor/adapters/net_http_adapter.rb', line 8 def self.kind :net_http end |
Instance Method Details
#initialize! ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/io_monitor/adapters/net_http_adapter.rb', line 12 def initialize! ActiveSupport.on_load(:after_initialize) do Net::HTTP.prepend(NetHttpAdapterPatch) if defined?(::WebMock) WebMock::HttpLibAdapters::NetHttpAdapter .instance_variable_get(:@webMockNetHTTP) .prepend(NetHttpAdapterPatch) end end end |