Class: Tus::Storage::Gridfs::Response
- Inherits:
-
Object
- Object
- Tus::Storage::Gridfs::Response
- Defined in:
- lib/tus/storage/gridfs.rb
Instance Method Summary collapse
- #close ⇒ Object
- #each(&block) ⇒ Object
-
#initialize(chunks:, close:, length:) ⇒ Response
constructor
A new instance of Response.
- #length ⇒ Object
Constructor Details
#initialize(chunks:, close:, length:) ⇒ Response
Returns a new instance of Response.
241 242 243 244 245 |
# File 'lib/tus/storage/gridfs.rb', line 241 def initialize(chunks:, close:, length:) @chunks = chunks @close = close @length = length end |
Instance Method Details
#close ⇒ Object
255 256 257 |
# File 'lib/tus/storage/gridfs.rb', line 255 def close @close.call end |
#each(&block) ⇒ Object
251 252 253 |
# File 'lib/tus/storage/gridfs.rb', line 251 def each(&block) @chunks.each(&block) end |
#length ⇒ Object
247 248 249 |
# File 'lib/tus/storage/gridfs.rb', line 247 def length @length end |