Sha256: ec1e42ff385f70b091de6858a6899eed5f0565e9786f5324b917179dde35943f

Contents?: true

Size: 264 Bytes

Versions: 2

Compression:

Stored size: 264 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pipe_rpc-2.1.0 lib/pipe_rpc/hub_request_result.rb
pipe_rpc-2.0.0 lib/pipe_rpc/hub_request_result.rb