Class: Google::Apis::DriveV2::File::Thumbnail
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::File::Thumbnail
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drive_v2/classes.rb,
lib/google/apis/drive_v2/representations.rb,
lib/google/apis/drive_v2/representations.rb
Overview
A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
Instance Attribute Summary collapse
-
#image ⇒ String
The URL-safe Base64 encoded bytes of the thumbnail image.
-
#mime_type ⇒ String
The MIME type of the thumbnail.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Thumbnail
constructor
A new instance of Thumbnail.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Thumbnail
Returns a new instance of Thumbnail.
3066 3067 3068 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3066 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image ⇒ String
The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to
RFC 4648 section 5.
Corresponds to the JSON property image
NOTE: Values are automatically base64 encoded/decoded in the client library.
3059 3060 3061 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3059 def image @image end |
#mime_type ⇒ String
The MIME type of the thumbnail.
Corresponds to the JSON property mimeType
3064 3065 3066 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3064 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3071 3072 3073 3074 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3071 def update!(**args) @image = args[:image] if args.key?(:image) @mime_type = args[:mime_type] if args.key?(:mime_type) end |