Sha256: fb2df6b8281e99f44f1e809c7a071f3af1d4446de9f38636d2179f9c378d4921

Contents?: true

Size: 223 Bytes

Versions: 1

Compression:

Stored size: 223 Bytes

Contents

module MiniCamel
  module Processor
    class Transform < Process

      values do
        attribute :to, Symbol
      end

      def call(exchange)
        exchange.update_context(to => super)
      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/transform.rb