Class: MiniCamel::Processor::ProcessEach
- Defined in:
- lib/mini_camel/processor/process_each.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#call(exchange) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/mini_camel/processor/process_each.rb', line 5 def call(exchange) additional_data = fetch_additional_data(exchange) # The use of map is no coincidence! (will be used as result in TransformEach) fetch_collection(exchange).map do |entry| process(entry, additional_data) end end |