Class: VCR::Request
- Inherits:
-
Struct
- Object
- Struct
- VCR::Request
- Defined in:
- lib/vcr/structs.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#method ⇒ Object
Returns the value of attribute method.
-
#uri ⇒ Object
Returns the value of attribute uri.
Class Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
4 5 6 |
# File 'lib/vcr/structs.rb', line 4 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
4 5 6 |
# File 'lib/vcr/structs.rb', line 4 def headers @headers end |
#method ⇒ Object
Returns the value of attribute method
4 5 6 |
# File 'lib/vcr/structs.rb', line 4 def method @method end |
#uri ⇒ Object
Returns the value of attribute uri
4 5 6 |
# File 'lib/vcr/structs.rb', line 4 def uri @uri end |
Class Method Details
.from_net_http_request(net_http, request) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/vcr/structs.rb', line 5 def self.from_net_http_request(net_http, request) new( request.method.downcase.to_sym, VCR.http_stubbing_adapter.request_uri(net_http, request), request.body, request.to_hash ) end |