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.
138 139 140 141 |
# File 'lib/tus/storage/filesystem.rb', line 138 def initialize(path:, **) super(**) @path = path end |
Instance Method Details
#to_path ⇒ Object
Rack::Sendfile middleware needs response body to respond to #to_path
144 145 146 |
# File 'lib/tus/storage/filesystem.rb', line 144 def to_path @path end |