Class: FileFM::StreamingUploader::StreamPart
- Inherits:
-
Object
- Object
- FileFM::StreamingUploader::StreamPart
- Defined in:
- lib/filefm/streaming_uploader.rb
Instance Method Summary collapse
-
#initialize(stream, size) ⇒ StreamPart
constructor
A new instance of StreamPart.
-
#read(offset, how_much) ⇒ Object
read the specified amount from the stream.
- #size ⇒ Object
Constructor Details
#initialize(stream, size) ⇒ StreamPart
Returns a new instance of StreamPart.
115 116 117 |
# File 'lib/filefm/streaming_uploader.rb', line 115 def initialize(stream, size) @stream, @size = stream, size end |
Instance Method Details
#read(offset, how_much) ⇒ Object
read the specified amount from the stream
124 125 126 |
# File 'lib/filefm/streaming_uploader.rb', line 124 def read(offset, how_much) @stream.read(how_much) end |
#size ⇒ Object
119 120 121 |
# File 'lib/filefm/streaming_uploader.rb', line 119 def size @size end |