Sha256: 1cf36c45dc577c2e28a3f3e27e98d051b34d75bdc12e638a113032a119e308a4
Contents?: true
Size: 851 Bytes
Versions: 2
Compression:
Stored size: 851 Bytes
Contents
# frozen_string_literal: true module Phobos class BatchMessage # @return attr_accessor :key # @return [Integer] attr_accessor :partition # @return [Integer] attr_accessor :offset # @return attr_accessor :payload # @return attr_accessor :headers # @param key # @param partition [Integer] # @param offset [Integer] # @param payload # @param headers # @return [void] def initialize(key:, partition:, offset:, payload:, headers:) @key = key @partition = partition @offset = offset @payload = payload @headers = headers end # @param other [Phobos::BatchMessage] # @return [Boolean] def ==(other) [:key, :partition, :offset, :payload, :headers].all? do |s| public_send(s) == other.public_send(s) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phobos-2.1.6 | lib/phobos/batch_message.rb |
phobos-2.1.5 | lib/phobos/batch_message.rb |