Class: Google::Apis::DriveV2::File::Thumbnail

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Thumbnail

Returns a new instance of Thumbnail.



3069
3070
3071
# File 'lib/google/apis/drive_v2/classes.rb', line 3069

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

Instance Attribute Details

#imageString

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.

Returns:

  • (String)


3062
3063
3064
# File 'lib/google/apis/drive_v2/classes.rb', line 3062

def image
  @image
end

#mime_typeString

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

Returns:

  • (String)


3067
3068
3069
# File 'lib/google/apis/drive_v2/classes.rb', line 3067

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3074
3075
3076
3077
# File 'lib/google/apis/drive_v2/classes.rb', line 3074

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