Sha256: 02f66543301210a27faec51be2dbf56b25d3f40ab7e85b70a37fc89a3460ab93

Contents?: true

Size: 336 Bytes

Versions: 5

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true

module Karafka
  module Controllers
    # Params alias for single message consumption controllers
    module SingleParams
      private

      # @return [Karafka::Params::Params] params instance for non batch consumption controllers
      def params
        params_batch.first
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
karafka-1.1.2 lib/karafka/controllers/single_params.rb
karafka-1.1.1 lib/karafka/controllers/single_params.rb
karafka-1.1.0 lib/karafka/controllers/single_params.rb
karafka-1.1.0.alpha2 lib/karafka/controllers/single_params.rb
karafka-1.1.0.alpha1 lib/karafka/controllers/single_params.rb