Sha256: 57bc83396d0689720c3c9eba7030f7eb1ba913e3eb9d91a4078b39e9760ea225

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

module MiniCamel
  module ProcessorDefinition
    class Produce < Base

      values do
        attribute :field, Symbol
        validates :field, presence: true

        attribute :with_class, Class
        validates :with_class, presence: true
      end

      def generate_processor(env)
        Processor::Produce.new(env: env, field: field, with_class: with_class)
      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_definition/produce.rb