Class: Tus::Storage::Filesystem::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/tus/storage/filesystem.rb

Instance Method Summary collapse

Constructor Details

#initialize(chunks:, close:) ⇒ Response

Returns a new instance of Response.



119
120
121
122
# File 'lib/tus/storage/filesystem.rb', line 119

def initialize(chunks:, close:)
  @chunks = chunks
  @close  = close
end

Instance Method Details

#closeObject



128
129
130
# File 'lib/tus/storage/filesystem.rb', line 128

def close
  @close.call
end

#each(&block) ⇒ Object



124
125
126
# File 'lib/tus/storage/filesystem.rb', line 124

def each(&block)
  @chunks.each(&block)
end