Class: Chaplin::Responses::Redirect
- Inherits:
-
Struct
- Object
- Struct
- Chaplin::Responses::Redirect
- Defined in:
- lib/chaplin/responses/redirect.rb
Instance Attribute Summary collapse
-
#api_requests_hash ⇒ Object
Returns the value of attribute api_requests_hash.
-
#redirect_path ⇒ Object
Returns the value of attribute redirect_path.
Instance Method Summary collapse
Instance Attribute Details
#api_requests_hash ⇒ Object
Returns the value of attribute api_requests_hash
6 7 8 |
# File 'lib/chaplin/responses/redirect.rb', line 6 def api_requests_hash @api_requests_hash end |
#redirect_path ⇒ Object
Returns the value of attribute redirect_path
6 7 8 |
# File 'lib/chaplin/responses/redirect.rb', line 6 def redirect_path @redirect_path end |
Instance Method Details
#execute(request_params, sinatra_server) ⇒ Object
8 9 10 11 12 |
# File 'lib/chaplin/responses/redirect.rb', line 8 def execute(request_params, sinatra_server) rendered_api_data = rendered_data(request_params) sinatra_server.redirect(rendered_path(rendered_api_data, request_params)) end |