Sha256: 9d0f34815edbbf5b258451c17cb054b3e1df422241e8733c8cba61e6da9da286

Contents?: true

Size: 567 Bytes

Versions: 4

Compression:

Stored size: 567 Bytes

Contents

# encoding: utf-8

module CarrierWave
  module Storage

    ##
    # This file serves mostly as a specification for Storage engines. There is no requirement
    # that storage engines must be a subclass of this class.
    #
    class Abstract

      attr_reader :uploader

      def initialize(uploader)
        @uploader = uploader
      end

      def identifier
        uploader.filename
      end

      def store!(file)
      end

      def retrieve!(identifier)
      end

      def rename!(file)
      end

    end # Abstract
  end # Storage
end # CarrierWave

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
locomotive_carrierwave-0.5.0.1.beta3 lib/carrierwave/storage/abstract.rb
locomotive_carrierwave-0.5.0.1.beta2 lib/carrierwave/storage/abstract.rb
locomotive_carrierwave-0.5.0.1.beta1 lib/carrierwave/storage/abstract.rb
locomotive_carrierwave-0.5.0.1 lib/carrierwave/storage/abstract.rb