Class: Net::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/webmock/disabler/disabler.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.socket_type_with_disablingObject 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_disablingObject 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