Module: WebStub::API

Extended by:
API
Included in:
API
Defined in:
lib/webstub/api.rb

Instance Method Summary collapse

Instance Method Details

#disable_network_access!Object


5
6
7
# File 'lib/webstub/api.rb', line 5

def disable_network_access!
  protocol.disable_network_access!
end

#enable_network_access!Object


9
10
11
# File 'lib/webstub/api.rb', line 9

def enable_network_access!
  protocol.enable_network_access!
end

#reset_stubsObject


17
18
19
# File 'lib/webstub/api.rb', line 17

def reset_stubs
  protocol.reset_stubs
end

#stub_request(method, path) ⇒ Object


13
14
15
# File 'lib/webstub/api.rb', line 13

def stub_request(method, path)
  protocol.add_stub(method, path)
end