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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/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

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.



2713
2714
2715
# File 'generated/google/apis/drive_v2/classes.rb', line 2713

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)


2706
2707
2708
# File 'generated/google/apis/drive_v2/classes.rb', line 2706

def image
  @image
end

#mime_typeString

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

Returns:

  • (String)


2711
2712
2713
# File 'generated/google/apis/drive_v2/classes.rb', line 2711

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2718
2719
2720
2721
# File 'generated/google/apis/drive_v2/classes.rb', line 2718

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