Class: Modern::App::RequestHandling::FullRequestContainer
- Inherits:
-
PartialRequestContainer
- Object
- PartialRequestContainer
- Modern::App::RequestHandling::FullRequestContainer
- Defined in:
- lib/modern/app/request_handling/request_container.rb
Overview
Encapsulates all portions of the request, including params and body, to have a route action run inside of it. This will be subclassed by Descriptor::Routes that incorporate helper libraries.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Attributes inherited from PartialRequestContainer
#configuration, #logger, #request, #response, #route, #services
Instance Method Summary collapse
-
#initialize(logger, configuration, services, route, request, response, params, body) ⇒ FullRequestContainer
constructor
A new instance of FullRequestContainer.
Methods inherited from PartialRequestContainer
Constructor Details
#initialize(logger, configuration, services, route, request, response, params, body) ⇒ FullRequestContainer
Returns a new instance of FullRequestContainer.
46 47 48 49 50 51 |
# File 'lib/modern/app/request_handling/request_container.rb', line 46 def initialize(logger, configuration, services, route, request, response, params, body) super(logger, configuration, services, route, request, response) @params = params @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
44 45 46 |
# File 'lib/modern/app/request_handling/request_container.rb', line 44 def body @body end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
43 44 45 |
# File 'lib/modern/app/request_handling/request_container.rb', line 43 def params @params end |