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)
[show source]
# File lib/shrine/plugins/rack_file.rb 55 def initialize(hash) 56 @tempfile = hash[:tempfile] 57 @original_filename = hash[:filename] 58 @content_type = hash[:type] 59 end