Class: Tus::Storage::Filesystem::Response
- Defined in:
- lib/tus/storage/filesystem.rb
Instance Method Summary collapse
-
#initialize(path:, **options) ⇒ Response
constructor
A new instance of Response.
-
#to_path ⇒ Object
Rack::Sendfile middleware needs response body to respond to #to_path.
Methods inherited from Response
Constructor Details
#initialize(path:, **options) ⇒ Response
Returns a new instance of Response.
141 142 143 144 |
# File 'lib/tus/storage/filesystem.rb', line 141 def initialize(path:, **) super(**) @path = path end |
Instance Method Details
#to_path ⇒ Object
Rack::Sendfile middleware needs response body to respond to #to_path
147 148 149 |
# File 'lib/tus/storage/filesystem.rb', line 147 def to_path @path end |