Class: MiniCamel::Processor::WrapInDto

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

Instance Method Summary collapse

Instance Method Details

#call(exchange) ⇒ Object



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

def call(exchange)
  exchange.update_context(as => MiniCamel::Dto.new(field => exchange.context_fetch(field)))
end