class Shrine::RackFile
This is used to wrap the Rack hash into an IO-like object which Shrine
can upload.
Attributes
content_type[R]
original_filename[R]
tempfile[R]
to_io[R]
Public Class Methods
new(hash)
click to toggle source
# File lib/shrine/plugins/rack_file.rb, line 55 def initialize(hash) @tempfile = hash[:tempfile] @original_filename = hash[:filename] @content_type = hash[:type] end
Public Instance Methods
path()
click to toggle source
# File lib/shrine/plugins/rack_file.rb, line 61 def path @tempfile.path end