Class: Rack::App::Middlewares::Payload::ParserSetter
- Inherits:
-
Object
- Object
- Rack::App::Middlewares::Payload::ParserSetter
- Defined in:
- lib/rack/app/middlewares/payload/parser_setter.rb
Constant Summary collapse
- PARSER =
::Rack::App::Constants::ENV::PAYLOAD_PARSER
- PARSED =
::Rack::App::Constants::ENV::PARSED_PAYLOAD
- GETTER =
::Rack::App::Constants::ENV::PAYLOAD_GETTER
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, payload_builder) ⇒ ParserSetter
constructor
A new instance of ParserSetter.
Constructor Details
#initialize(app, payload_builder) ⇒ ParserSetter
Returns a new instance of ParserSetter.
7 8 9 10 |
# File 'lib/rack/app/middlewares/payload/parser_setter.rb', line 7 def initialize(app, payload_builder) @payload_parser = payload_builder.parser.to_parser @app = app end |