Class: Modern::App::RequestHandling::FullRequestContainer

Inherits:
PartialRequestContainer show all
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

Attributes inherited from PartialRequestContainer

#configuration, #logger, #request, #response, #route, #services

Instance Method Summary collapse

Methods inherited from PartialRequestContainer

#with_logger_fields

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

#bodyObject (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

#paramsObject (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