Class: Google::APIClient::UploadIO
- Inherits:
-
Faraday::UploadIO
- Object
- Faraday::UploadIO
- Google::APIClient::UploadIO
- Defined in:
- lib/google/api_client/media.rb
Overview
Uploadable media support. Holds an IO stream & content type.
Instance Method Summary collapse
-
#length ⇒ Integer
Get the length of the stream.
Instance Method Details
#length ⇒ Integer
Get the length of the stream
28 29 30 |
# File 'lib/google/api_client/media.rb', line 28 def length io.respond_to?(:length) ? io.length : File.size(local_path) end |