Parent

Methods

Class/Module Index [+]

Quicksearch

Google::APIClient::UploadIO

Uploadable media support. Holds an IO stream & content type.

@see Faraday::UploadIO @example

media = Google::APIClient::UploadIO.new('mymovie.m4v', 'video/mp4')

Attributes

chunk_size[RW]

@return [Fixnum] Size of chunks to upload. Default is nil, meaning upload the entire file in a single request

Public Instance Methods

length() click to toggle source

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.