Sha256: cc03bc2c15b86e00f6b78d3351d605f79ab656d1da39f602047418491debdc9e

Contents?: true

Size: 399 Bytes

Versions: 1

Compression:

Stored size: 399 Bytes

Contents

module MiniCamel
  module ProcessorDefinition
    class Mutate < 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::Mutate.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/mutate.rb