Sha256: 1e926457feba304da9ba3831b0e25091ed88567b102ccf4af60b8f4b716a8ef2

Contents?: true

Size: 367 Bytes

Versions: 56

Compression:

Stored size: 367 Bytes

Contents

# frozen_string_literal: true

module Karafka
  module Messages
    # Default message parser. The only thing it does, is calling the deserializer
    class Parser
      # @param message [::Karafka::Messages::Message]
      # @return [Object] deserialized payload
      def call(message)
        message.metadata.deserializer.call(message)
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
karafka-2.3.4 lib/karafka/messages/parser.rb
karafka-2.3.3 lib/karafka/messages/parser.rb
karafka-2.3.2 lib/karafka/messages/parser.rb
karafka-2.3.1 lib/karafka/messages/parser.rb
karafka-2.3.0 lib/karafka/messages/parser.rb
karafka-2.3.0.rc1 lib/karafka/messages/parser.rb
karafka-2.3.0.alpha2 lib/karafka/messages/parser.rb
karafka-2.3.0.alpha1 lib/karafka/messages/parser.rb
karafka-2.2.14 lib/karafka/messages/parser.rb
karafka-2.2.13 lib/karafka/messages/parser.rb
karafka-2.2.12 lib/karafka/messages/parser.rb
karafka-2.2.11 lib/karafka/messages/parser.rb
karafka-2.2.10 lib/karafka/messages/parser.rb
karafka-2.2.9 lib/karafka/messages/parser.rb
karafka-2.2.8 lib/karafka/messages/parser.rb
karafka-2.2.8.beta1 lib/karafka/messages/parser.rb
karafka-2.2.7 lib/karafka/messages/parser.rb
karafka-2.2.6 lib/karafka/messages/parser.rb
karafka-2.2.5 lib/karafka/messages/parser.rb
karafka-2.2.4 lib/karafka/messages/parser.rb