Sha256: 88fd81a0c58d892d1910f859308ca47076c99de071c9a9ba7cb546c536c056df

Contents?: true

Size: 392 Bytes

Versions: 1

Compression:

Stored size: 392 Bytes

Contents

module MiniCamel
  module ProcessorDefinition
    class ExposeFields < Base

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

        attribute :from, Symbol
        validates :from, presence: true
      end

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