Sha256: d97f192f91d50a5cf4a4dff369767fc9fd8998b50e7411c77339eddd32a96417
Contents?: true
Size: 421 Bytes
Versions: 1
Compression:
Stored size: 421 Bytes
Contents
module MiniCamel class Route include Virtus.value_object attribute :env, Environment values do attribute :route_name, Symbol attribute :processors, Array, default: [] end def call(exchange) raise EnvironmentNotFinalized, "Please finalize the environment." unless env.finalized? processors.each do |processor| processor.call(exchange) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mini_camel-0.5.8 | lib/mini_camel/route.rb |