class FileFM::StreamingUploader::StreamPart

Public Class Methods

new(stream, size) click to toggle source
# File lib/filefm/streaming_uploader.rb, line 115
def initialize(stream, size)
  @stream, @size = stream, size
end

Public Instance Methods

read(offset, how_much) click to toggle source

read the specified amount from the stream

# File lib/filefm/streaming_uploader.rb, line 124
def read(offset, how_much)
  @stream.read(how_much)
end
size() click to toggle source
# File lib/filefm/streaming_uploader.rb, line 119
def size
  @size
end