Class: Lennarb::Request
- Inherits:
-
Rack::Request
- Object
- Rack::Request
- Lennarb::Request
- Defined in:
- lib/lennarb/request.rb
Instance Method Summary collapse
-
#initialize(env, route_params = {}) ⇒ Request
constructor
Initialize the request object.
-
#params ⇒ Object
Get the request body.
Constructor Details
#initialize(env, route_params = {}) ⇒ Request
Initialize the request object
15 16 17 18 |
# File 'lib/lennarb/request.rb', line 15 def initialize(env, route_params = {}) super(env) @route_params = route_params end |
Instance Method Details
#params ⇒ Object
Get the request body
23 24 25 |
# File 'lib/lennarb/request.rb', line 23 def params @params ||= super.merge(@route_params) end |