Class: MiniCamel::Processor::Mutate

Inherits:
Base
  • Object
show all
Defined in:
lib/mini_camel/processor/mutate.rb

Instance Method Summary collapse

Instance Method Details

#call(exchange) ⇒ Object



10
11
12
13
# File 'lib/mini_camel/processor/mutate.rb', line 10

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