Class: VCR::LibraryHooks::Typhoeus::RequestHandler
- Inherits:
-
RequestHandler
- Object
- RequestHandler
- VCR::LibraryHooks::Typhoeus::RequestHandler
- Defined in:
- lib/vcr/library_hooks/typhoeus.rb,
lib/vcr/library_hooks/typhoeus_0.4.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.
17 18 19 20 |
# File 'lib/vcr/library_hooks/typhoeus.rb', line 17 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.
16 17 18 |
# File 'lib/vcr/library_hooks/typhoeus.rb', line 16 def request @request end |