Class: CarrierWave::Storage::Abstract
- Inherits:
-
Object
- Object
- CarrierWave::Storage::Abstract
- Defined in:
- lib/carrierwave/storage/abstract.rb
Overview
This file serves mostly as a specification for Storage engines. There is no requirement that storage engines must be a subclass of this class.
Instance Attribute Summary (collapse)
-
- (Object) uploader
readonly
Returns the value of attribute uploader.
Instance Method Summary (collapse)
- - (Object) identifier
-
- (Abstract) initialize(uploader)
constructor
A new instance of Abstract.
- - (Object) retrieve!(identifier)
- - (Object) store!(file)
Constructor Details
- (Abstract) initialize(uploader)
A new instance of Abstract
14 15 16 |
# File 'lib/carrierwave/storage/abstract.rb', line 14 def initialize(uploader) @uploader = uploader end |
Instance Attribute Details
- (Object) uploader (readonly)
Returns the value of attribute uploader
12 13 14 |
# File 'lib/carrierwave/storage/abstract.rb', line 12 def uploader @uploader end |
Instance Method Details
- (Object) identifier
18 19 20 |
# File 'lib/carrierwave/storage/abstract.rb', line 18 def identifier uploader.filename end |
- (Object) retrieve!(identifier)
25 26 |
# File 'lib/carrierwave/storage/abstract.rb', line 25 def retrieve!(identifier) end |
- (Object) store!(file)
22 23 |
# File 'lib/carrierwave/storage/abstract.rb', line 22 def store!(file) end |