Sha256: 6cf06ab754d91eedecf1f616bede650346896737c3be3c6b50b784470dd34b62

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

module MiniCamel
  module ProcessorDefinition
    class Process < Base

      values do
        attribute :fields, [Symbol]
        validates :fields, presence: true

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

      def generate_processor(env)
        Processor::Process.new(env: env, fields: fields, 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/process.rb