Class: CarrierWave::Storage::Nos

Inherits:
Abstract
  • Object
show all
Defined in:
lib/carrierwave/storage/nos.rb

Instance Method Summary collapse

Instance Method Details

#retrieve!(identifier) ⇒ Object



14
15
16
# File 'lib/carrierwave/storage/nos.rb', line 14

def retrieve!(identifier)
  NosFile.new(uploader, self, uploader.store_path(identifier))
end

#store!(file) ⇒ Object



8
9
10
11
12
# File 'lib/carrierwave/storage/nos.rb', line 8

def store!(file)
  f = NosFile.new(uploader, self, uploader.store_path)
  f.store(::File.open(file.file))
  f
end