class Tus::Storage::Filesystem::Response

Public Class Methods

new(path:, **options) click to toggle source
Calls superclass method Tus::Response::new
# File lib/tus/storage/filesystem.rb, line 138
def initialize(path:, **options)
  super(**options)
  @path = path
end

Public Instance Methods

to_path() click to toggle source

Rack::Sendfile middleware needs response body to respond to to_path

# File lib/tus/storage/filesystem.rb, line 144
def to_path
  @path
end