Sha256: e2b70d8e247bc0ae708ff4a1a0dd46284c423bdfaf51d403f71870bb11884fb4

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

module MiniCamel
  module Processor
    class Produce < Base

      values do
        attribute :field, Symbol
        attribute :with_class, Class
      end

      def call(exchange)
        exchange.update_context(field => with_class.new.call)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mini_camel-0.5.8 lib/mini_camel/processor/produce.rb