Sha256: 942325ca9333692eee7f3acb19bda41386beb849bfa4ebbba73a47979f0e9a63

Contents?: true

Size: 282 Bytes

Versions: 4

Compression:

Stored size: 282 Bytes

Contents

module PipeRpc
  class Hub::Request::Result
    def initialize(request, result)
      @request, @result, @async_responder = request, result
    end

    def value
      @result
    end

    def to_response
      ResultResponse.new(id: @request.id, result: @result)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pipe_rpc-1.1.2 lib/pipe_rpc/hub_request_result.rb
pipe_rpc-1.1.1 lib/pipe_rpc/hub_request_result.rb
pipe_rpc-1.1.0 lib/pipe_rpc/hub_request_result.rb
pipe_rpc-1.0.0 lib/pipe_rpc/hub_request_result.rb