module PipeRpc class Hub::Request::Result def initialize(request, result) @request, @result = request, result end def value @result end def to_response ResultResponse.new(id: @request.id, result: @result) end end end