Module: CableX::Channel::Process::Response
- Included in:
- CableXChannel
- Defined in:
- lib/cable_x/channel/process/response.rb
Overview
Process response specific tasks
Instance Method Summary collapse
Instance Method Details
#prepare_response ⇒ Object
13 14 15 |
# File 'lib/cable_x/channel/process/response.rb', line 13 def prepare_response @response_body = { request_id: request_id, body: response.body, code: response.code, headers: response.headers.to_h } end |
#set_response ⇒ Object
9 10 11 |
# File 'lib/cable_x/channel/process/response.rb', line 9 def set_response @response = ActionDispatch::Response.new end |