Class: Google::Apis::SlidesV1::Thumbnail

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

Overview

The thumbnail of a page.

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



1348
1349
1350
# File 'generated/google/apis/slides_v1/classes.rb', line 1348

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

Instance Attribute Details

#content_urlString

The content URL of the thumbnail image. The URL to the image has a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL effectively accesses the image as the original requester. Access to the image may be lost if the presentation's sharing settings change. The mime type of the thumbnail image is the same as specified in the GetPageThumbnailRequest. Corresponds to the JSON property contentUrl

Returns:

  • (String)


1346
1347
1348
# File 'generated/google/apis/slides_v1/classes.rb', line 1346

def content_url
  @content_url
end

#heightFixnum

The positive height in pixels of the thumbnail image. Corresponds to the JSON property height

Returns:

  • (Fixnum)


1335
1336
1337
# File 'generated/google/apis/slides_v1/classes.rb', line 1335

def height
  @height
end

#widthFixnum

The positive width in pixels of the thumbnail image. Corresponds to the JSON property width

Returns:

  • (Fixnum)


1330
1331
1332
# File 'generated/google/apis/slides_v1/classes.rb', line 1330

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1353
1354
1355
1356
1357
# File 'generated/google/apis/slides_v1/classes.rb', line 1353

def update!(**args)
  @width = args[:width] if args.key?(:width)
  @height = args[:height] if args.key?(:height)
  @content_url = args[:content_url] if args.key?(:content_url)
end