Class: Net::HTTP
- Inherits:
-
Object
- Object
- Net::HTTP
- Defined in:
- lib/webmock/disabler/disabler.rb
Class Method Summary collapse
- .socket_type_with_disabling ⇒ Object (also: socket_type)
Instance Method Summary collapse
- #connect_with_disabling ⇒ Object (also: #connect)
- #request_with_disabling(*args, &block) ⇒ Object (also: #request)
Class Method Details
.socket_type_with_disabling ⇒ Object Also known as: socket_type
12 13 14 |
# File 'lib/webmock/disabler/disabler.rb', line 12 def socket_type_with_disabling WebMock.enabled? ? socket_type_with_webmock : socket_type_without_webmock end |
Instance Method Details
#connect_with_disabling ⇒ Object Also known as: connect
25 26 27 |
# File 'lib/webmock/disabler/disabler.rb', line 25 def connect_with_disabling WebMock.enabled? ? connect_with_webmock : connect_without_webmock end |
#request_with_disabling(*args, &block) ⇒ Object Also known as: request
19 20 21 |
# File 'lib/webmock/disabler/disabler.rb', line 19 def request_with_disabling(*args, &block) WebMock.enabled? ? request_with_webmock(*args, &block) : request_without_webmock(*args, &block) end |