Class: Google::Apis::SlidesV1::Image

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

A PageElement kind representing an image.

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) ⇒ Image

Returns a new instance of Image



1283
1284
1285
# File 'generated/google/apis/slides_v1/classes.rb', line 1283

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

Instance Attribute Details

#content_urlString

An URL to an image with 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. Corresponds to the JSON property contentUrl

Returns:

  • (String)


1276
1277
1278
# File 'generated/google/apis/slides_v1/classes.rb', line 1276

def content_url
  @content_url
end

#image_propertiesGoogle::Apis::SlidesV1::ImageProperties

The properties of the Image. Corresponds to the JSON property imageProperties



1281
1282
1283
# File 'generated/google/apis/slides_v1/classes.rb', line 1281

def image_properties
  @image_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1288
1289
1290
1291
# File 'generated/google/apis/slides_v1/classes.rb', line 1288

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