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


20
21
22
# File 'lib/webmock/http_lib_adapters/http_rb_adapter.rb', line 20

def disable!
  @enabled = false
end

.enable!Object


16
17
18
# File 'lib/webmock/http_lib_adapters/http_rb_adapter.rb', line 16

def enable!
  @enabled = true
end

.enabled?Boolean

Returns:

  • (Boolean)

24
25
26
# File 'lib/webmock/http_lib_adapters/http_rb_adapter.rb', line 24

def enabled?
  @enabled
end