Class: Tus::Storage::Filesystem::Response
- Inherits:
-
Object
- Object
- Tus::Storage::Filesystem::Response
- Defined in:
- lib/tus/storage/filesystem.rb
Instance Method Summary collapse
- #close ⇒ Object
- #each(&block) ⇒ Object
-
#initialize(chunks:, close:) ⇒ Response
constructor
A new instance of Response.
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
#close ⇒ Object
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 |