Sha256: 53d9eef5ecde3440148742122997138aac360b6f7a5441cf474eed038e2f366c

Contents?: true

Size: 234 Bytes

Versions: 9

Compression:

Stored size: 234 Bytes

Contents

module PipeRpc
  class ResultResponse
    def initialize(args = {})
      @result = args.fetch(:result)
      @id = args.fetch(:id)
    end

    attr_reader :result, :id

    def to_h
      { id: id, result: result }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pipe_rpc-2.5.0 lib/pipe_rpc/result_response.rb
pipe_rpc-2.4.0 lib/pipe_rpc/result_response.rb
pipe_rpc-2.3.0 lib/pipe_rpc/result_response.rb
pipe_rpc-2.2.3 lib/pipe_rpc/result_response.rb
pipe_rpc-2.2.2 lib/pipe_rpc/result_response.rb
pipe_rpc-2.2.1 lib/pipe_rpc/result_response.rb
pipe_rpc-2.2.0 lib/pipe_rpc/result_response.rb
pipe_rpc-2.1.0 lib/pipe_rpc/result_response.rb
pipe_rpc-2.0.0 lib/pipe_rpc/result_response.rb