Module: VCR::LibraryHooks::WebMock
Defined Under Namespace
Modules: Helpers Classes: RequestHandler
Instance Attribute Summary collapse
-
#global_hook_disabled ⇒ Object
(also: #global_hook_disabled?)
Returns the value of attribute global_hook_disabled.
Instance Method Summary collapse
Methods included from Helpers
request_headers_for, typed_request_for, vcr_request_for, vcr_response_for
Instance Attribute Details
#global_hook_disabled ⇒ Object Also known as: global_hook_disabled?
Returns the value of attribute global_hook_disabled.
13 14 15 |
# File 'lib/vcr/library_hooks/webmock.rb', line 13 def global_hook_disabled @global_hook_disabled end |
Instance Method Details
#with_global_hook_disabled ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/vcr/library_hooks/webmock.rb', line 16 def with_global_hook_disabled self.global_hook_disabled = true begin yield ensure self.global_hook_disabled = false end end |