Sha256: 8d5f1d57887e5189beadc0989b3109d6df1fa34979f3aa7a16e8943fe820cc6a

Contents?: true

Size: 484 Bytes

Versions: 17

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

module Phobos
  class BatchMessage
    attr_accessor :key, :partition, :offset, :payload, :headers

    def initialize(key:, partition:, offset:, payload:, headers:)
      @key = key
      @partition = partition
      @offset = offset
      @payload = payload
      @headers = headers
    end

    def ==(other)
      [:key, :partition, :offset, :payload, :headers].all? do |s|
        public_send(s) == other.public_send(s)
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
phobos-2.1.4 lib/phobos/batch_message.rb
phobos-2.1.3 lib/phobos/batch_message.rb
phobos-2.1.2 lib/phobos/batch_message.rb
phobos-2.1.1 lib/phobos/batch_message.rb
phobos_temp_fork-0.0.4 lib/phobos/batch_message.rb
phobos_temp_fork-0.0.3 lib/phobos/batch_message.rb
phobos_temp_fork-0.0.2 lib/phobos/batch_message.rb
phobos_temp_fork-0.0.1 lib/phobos/batch_message.rb
phobos-2.1.0 lib/phobos/batch_message.rb
phobos-2.0.2 lib/phobos/batch_message.rb
phobos-2.0.1 lib/phobos/batch_message.rb
phobos-2.0.0.pre.beta1 lib/phobos/batch_message.rb
phobos-1.9.0 lib/phobos/batch_message.rb
phobos-1.9.0.pre.beta3 lib/phobos/batch_message.rb
phobos-1.9.0.pre.beta2 lib/phobos/batch_message.rb
phobos-1.9.0.pre.beta1 lib/phobos/batch_message.rb
phobos-1.8.3.pre.beta2 lib/phobos/batch_message.rb