Class: VCR::LibraryHooks::Typhoeus::RequestHandler
- Inherits:
-
RequestHandler
- Object
- RequestHandler
- VCR::LibraryHooks::Typhoeus::RequestHandler
- Defined in:
- lib/vcr/library_hooks/typhoeus.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(request) ⇒ RequestHandler
constructor
A new instance of RequestHandler.
- #vcr_request ⇒ Object
Methods inherited from RequestHandler
Methods included from VCR::Logger::Mixin
#log, #request_summary, #response_summary
Constructor Details
#initialize(request) ⇒ RequestHandler
Returns a new instance of RequestHandler.
12 13 14 15 |
# File 'lib/vcr/library_hooks/typhoeus.rb', line 12 def initialize(request) @request = request request.block_connection = false if VCR.turned_on? end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
11 12 13 |
# File 'lib/vcr/library_hooks/typhoeus.rb', line 11 def request @request end |