Class: Faraday::ForTest::Response
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Faraday::ForTest::Response
- Defined in:
- lib/faraday/for_test/response.rb,
lib/faraday/for_test/response/dumper.rb,
lib/faraday/for_test/response/assertion.rb,
lib/faraday/for_test/response/formatter.rb
Defined Under Namespace
Modules: Assertion, Dumper, Formatter
Instance Attribute Summary collapse
-
#request_params ⇒ Object
Returns the value of attribute request_params.
Instance Method Summary collapse
-
#initialize(response, params = {}) ⇒ Response
constructor
A new instance of Response.
Methods included from Formatter
#request_body, #request_headers, #request_line, #response_body, #response_headers, #status_line
Methods included from Assertion
Methods included from Dumper
#dump, #dump_once, #must_succeed
Constructor Details
#initialize(response, params = {}) ⇒ Response
Returns a new instance of Response.
13 14 15 16 17 18 19 20 |
# File 'lib/faraday/for_test/response.rb', line 13 def initialize(response, params = {}) @respone = response @request_params = params.delete(:request_params) @params = params super(response) end |
Instance Attribute Details
#request_params ⇒ Object
Returns the value of attribute request_params.
11 12 13 |
# File 'lib/faraday/for_test/response.rb', line 11 def request_params @request_params end |