class Chef::CookbookSiteStreamingUploader::StreamPart

Public Class Methods

new(stream, size) click to toggle source
# File lib/chef/cookbook_site_streaming_uploader.rb, line 164
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/chef/cookbook_site_streaming_uploader.rb, line 173
def read(offset, how_much)
  @stream.read(how_much)
end
size() click to toggle source
# File lib/chef/cookbook_site_streaming_uploader.rb, line 168
def size
  @size
end