Faraday::UploadIO
Uploadable media support. Holds an IO stream & content type.
@see Faraday::UploadIO @example
media = Google::APIClient::UploadIO.new('mymovie.m4v', 'video/mp4')
@return [Fixnum] Size of chunks to upload. Default is nil, meaning upload the entire file in a single request
Get the length of the stream
@return [Fixnum]
Length of stream, in bytes
# File lib/google/api_client/media.rb, line 34 def length io.respond_to?(:length) ? io.length : File.size(local_path) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.