Class: WebMock::HttpLibAdapters::HttpRbAdapter

Inherits:
WebMock::HttpLibAdapter show all
Defined in:
lib/webmock/http_lib_adapters/http_rb_adapter.rb

Class Method Summary collapse

Methods inherited from WebMock::HttpLibAdapter

adapter_for

Class Method Details

.disable!Object



22
23
24
# File 'lib/webmock/http_lib_adapters/http_rb_adapter.rb', line 22

def disable!
  @enabled = false
end

.enable!Object



18
19
20
# File 'lib/webmock/http_lib_adapters/http_rb_adapter.rb', line 18

def enable!
  @enabled = true
end

.enabled?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/webmock/http_lib_adapters/http_rb_adapter.rb', line 26

def enabled?
  @enabled
end