Class: ExceptionHandling::Testing::ControllerStubBase::Request
- Inherits:
-
Object
- Object
- ExceptionHandling::Testing::ControllerStubBase::Request
- Defined in:
- lib/exception_handling/testing.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
Returns the value of attribute env.
-
#host ⇒ Object
Returns the value of attribute host.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#request_uri ⇒ Object
Returns the value of attribute request_uri.
-
#session_options ⇒ Object
Returns the value of attribute session_options.
Instance Method Summary collapse
-
#initialize ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize ⇒ Request
Returns a new instance of Request.
12 13 14 15 16 17 18 19 |
# File 'lib/exception_handling/testing.rb', line 12 def initialize @parameters = { id: "1" } @protocol = 'http' @host = 'localhost' @request_uri = "/fun/testing.html?foo=bar" @env = { HOST: "local" } @session_options = { id: '93951506217301' } end |
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env.
10 11 12 |
# File 'lib/exception_handling/testing.rb', line 10 def env @env end |
#host ⇒ Object
Returns the value of attribute host.
10 11 12 |
# File 'lib/exception_handling/testing.rb', line 10 def host @host end |
#parameters ⇒ Object
Returns the value of attribute parameters.
10 11 12 |
# File 'lib/exception_handling/testing.rb', line 10 def parameters @parameters end |
#protocol ⇒ Object
Returns the value of attribute protocol.
10 11 12 |
# File 'lib/exception_handling/testing.rb', line 10 def protocol @protocol end |
#request_uri ⇒ Object
Returns the value of attribute request_uri.
10 11 12 |
# File 'lib/exception_handling/testing.rb', line 10 def request_uri @request_uri end |
#session_options ⇒ Object
Returns the value of attribute session_options.
10 11 12 |
# File 'lib/exception_handling/testing.rb', line 10 def @session_options end |