Class: Rack::ClientSpec::GotRequest
- Inherits:
-
Object
- Object
- Rack::ClientSpec::GotRequest
- Defined in:
- lib/rack/client_spec/got_request.rb
Defined Under Namespace
Classes: Response
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(env, response) ⇒ GotRequest
constructor
A new instance of GotRequest.
Constructor Details
#initialize(env, response) ⇒ GotRequest
Returns a new instance of GotRequest.
27 28 29 30 |
# File 'lib/rack/client_spec/got_request.rb', line 27 def initialize(env, response) @env = env @response = Response.new(response) end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
25 26 27 |
# File 'lib/rack/client_spec/got_request.rb', line 25 def env @env end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
25 26 27 |
# File 'lib/rack/client_spec/got_request.rb', line 25 def response @response end |