Class: Google::Apis::DriveV3::File::ContentHints::Thumbnail

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/google/apis/drive_v3/representations.rb

Overview

A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Thumbnail

Returns a new instance of Thumbnail.



2181
2182
2183
# File 'lib/google/apis/drive_v3/classes.rb', line 2181

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#imageString

The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5). Corresponds to the JSON property image NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2174
2175
2176
# File 'lib/google/apis/drive_v3/classes.rb', line 2174

def image
  @image
end

#mime_typeString

The MIME type of the thumbnail. Corresponds to the JSON property mimeType

Returns:

  • (String)


2179
2180
2181
# File 'lib/google/apis/drive_v3/classes.rb', line 2179

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2186
2187
2188
2189
# File 'lib/google/apis/drive_v3/classes.rb', line 2186

def update!(**args)
  @image = args[:image] if args.key?(:image)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end