Sha256: 987fda8392f91113fda1d5b834889f835d2360f442d4e305b806927ac56a3996
Contents?: true
Size: 449 Bytes
Versions: 5
Compression:
Stored size: 449 Bytes
Contents
module Bixby module WebSocket class Response < Message def initialize(json_response, id, headers=nil) if json_response.respond_to? :headers then headers = json_response.headers end super(id, "rpc_result", headers) @hash[:data] = json_response.to_wire @body = MultiJson.dump(@hash) end def json_response JsonResponse.from_json(body) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems