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

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Thumbnail

Returns a new instance of Thumbnail



1079
1080
1081
# File 'generated/google/apis/drive_v3/classes.rb', line 1079

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)


1072
1073
1074
# File 'generated/google/apis/drive_v3/classes.rb', line 1072

def image
  @image
end

#mime_typeString

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

Returns:

  • (String)


1077
1078
1079
# File 'generated/google/apis/drive_v3/classes.rb', line 1077

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1084
1085
1086
1087
# File 'generated/google/apis/drive_v3/classes.rb', line 1084

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