Class: Rack::Uploads::UploadedNginxFile

Inherits:
UploadedFile show all
Defined in:
lib/rack/uploads/uploaded_file.rb

Instance Attribute Summary

Attributes inherited from UploadedFile

#file, #key

Instance Method Summary collapse

Methods inherited from UploadedFile

#[], #cleanup, #cp, #method_missing, #mv, #rm, #size

Constructor Details

#initialize(key, file) ⇒ UploadedNginxFile

Returns a new instance of UploadedNginxFile.



48
49
50
51
# File 'lib/rack/uploads/uploaded_file.rb', line 48

def initialize(key, file)
  super(key, file)
  @cleanup_needed = true
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Rack::Uploads::UploadedFile

Instance Method Details

#temp_path ⇒ Object



52
53
54
# File 'lib/rack/uploads/uploaded_file.rb', line 52

def temp_path
  @file[:temp_path]
end