Sha256: 39ef592a471808267aeab57a750c1fd1e5df531691e5c4b680b0caa138bb7477

Contents?: true

Size: 1.06 KB

Versions: 34

Compression:

Stored size: 1.06 KB

Contents

module Attached
  module Processor
    class Base
      
      
      attr_accessor :file
      attr_accessor :options
      attr_accessor :attachment
    
    
      # Create and run a processor.
      #
      # Parameters:
      # 
      # * file       - The file to be processed.
      # * options    - The options to be applied to the processing.
      # * attachment - The attachment the processor is being run for.

      def self.process(file, options = {}, attachment = nil)
        new(file, options, attachment).process
      end
    
    
      # Create a processor.
      #
      # Parameters:
      # 
      # * file       - The file to be processed.
      # * options    - The options to be applied to the processing.
      # * attachment - The attachment the processor is being run for.

      def initialize(file, options = {}, attachment = nil)
        @file = file
        @options = options
        @attachment = attachment
      end
    
    
      # Run the processor. 

      def process
        raise NotImplementedError.new   
      end
    
    
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
attached-0.5.2 lib/attached/processor/base.rb
attached-0.5.1 lib/attached/processor/base.rb
attached-0.5.0 lib/attached/processor/base.rb
attached-0.4.9 lib/attached/processor/base.rb
attached-0.4.8 lib/attached/processor/base.rb
attached-0.4.7 lib/attached/processor/base.rb
attached-0.4.6 lib/attached/processor/base.rb
attached-0.4.5 lib/attached/processor/base.rb
attached-0.4.4 lib/attached/processor/base.rb
attached-0.4.3 lib/attached/processor/base.rb
attached-0.4.2 lib/attached/processor/base.rb
attached-0.4.1 lib/attached/processor/base.rb
attached-0.4.0 lib/attached/processor/base.rb
attached-0.3.9 lib/attached/processor/base.rb
attached-0.3.8 lib/attached/processor/base.rb
attached-0.3.7 lib/attached/processor/base.rb
attached-0.3.6 lib/attached/processor/base.rb
attached-0.3.5 lib/attached/processor/base.rb
attached-0.3.4 lib/attached/processor/base.rb
attached-0.3.3 lib/attached/processor/base.rb