Class: Harbor::Test::Request
- Defined in:
- lib/harbor/test/request.rb
Constant Summary
Constants inherited from Request
Instance Attribute Summary collapse
-
#env ⇒ Object
Returns the value of attribute env.
-
#params ⇒ Object
Returns the value of attribute params.
-
#session ⇒ Object
Returns the value of attribute session.
Attributes inherited from Request
Class Method Summary collapse
-
.new(*args) ⇒ Object
Rack::Response defines self.new(env, *args), which means we can’t initialize a new request via a container without replacing this method.
Methods inherited from Request
#bot?, #environment, #fetch, #initialize, #message, #messages, #path, #protocol, #referer, #remote_ip, #request_method, #session?, #ssl?, #uri
Constructor Details
This class inherits a constructor from Harbor::Request
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env.
5 6 7 |
# File 'lib/harbor/test/request.rb', line 5 def env @env end |
#params ⇒ Object
Returns the value of attribute params.
5 6 7 |
# File 'lib/harbor/test/request.rb', line 5 def params @params end |
#session ⇒ Object
Returns the value of attribute session.
5 6 7 |
# File 'lib/harbor/test/request.rb', line 5 def session @session end |
Class Method Details
.new(*args) ⇒ Object
Rack::Response defines self.new(env, *args), which means we can’t initialize a new request via a container without replacing this method.
15 16 17 |
# File 'lib/harbor/test/request.rb', line 15 def self.new(*args) super(nil, {}) end |