Sha256: ebbacf6356ab81b2bd52712b3e753e50ef3dd80729e22a3f847fd19eba0dd6bd

Contents?: true

Size: 301 Bytes

Versions: 4

Compression:

Stored size: 301 Bytes

Contents

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

    def value
      DeepMapper.to_transport(@result, @request.hub)
    end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pipe_rpc-2.2.3 lib/pipe_rpc/hub_request_result.rb
pipe_rpc-2.2.2 lib/pipe_rpc/hub_request_result.rb
pipe_rpc-2.2.1 lib/pipe_rpc/hub_request_result.rb
pipe_rpc-2.2.0 lib/pipe_rpc/hub_request_result.rb