class Bixby::WebSocket::Response
Public Class Methods
new(json_response, id, headers=nil)
click to toggle source
Calls superclass method
Bixby::WebSocket::Message::new
# File lib/bixby-common/websocket/response.rb, line 7 def initialize(json_response, id, headers=nil) if json_response.respond_to? :headers then headers = json_response.headers end super(id, "rpc_result", headers) @body = json_response.to_wire end
Public Instance Methods
json_response()
click to toggle source
# File lib/bixby-common/websocket/response.rb, line 16 def json_response JsonResponse.from_json(body) end