Class: Google::Apis::SlidesV1::Thumbnail
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::Thumbnail
- 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
-
#content_url ⇒ String
The content URL of the thumbnail image.
-
#height ⇒ Fixnum
The positive height in pixels of the thumbnail image.
-
#width ⇒ Fixnum
The positive width in pixels of the thumbnail image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Thumbnail
constructor
A new instance of Thumbnail.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Thumbnail
Returns a new instance of Thumbnail
4224 4225 4226 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4224 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_url ⇒ String
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
4212 4213 4214 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4212 def content_url @content_url end |
#height ⇒ Fixnum
The positive height in pixels of the thumbnail image.
Corresponds to the JSON property height
4217 4218 4219 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4217 def height @height end |
#width ⇒ Fixnum
The positive width in pixels of the thumbnail image.
Corresponds to the JSON property width
4222 4223 4224 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4222 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4229 4230 4231 4232 4233 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4229 def update!(**args) @content_url = args[:content_url] if args.key?(:content_url) @height = args[:height] if args.key?(:height) @width = args[:width] if args.key?(:width) end |