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

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

Overview

A PageElement kind representing an image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image.



1221
1222
1223
# File 'lib/google/apis/slides_v1/classes.rb', line 1221

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)


1203
1204
1205
# File 'lib/google/apis/slides_v1/classes.rb', line 1203

def content_url
  @content_url
end

#image_propertiesGoogle::Apis::SlidesV1::ImageProperties

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



1208
1209
1210
# File 'lib/google/apis/slides_v1/classes.rb', line 1208

def image_properties
  @image_properties
end

#placeholderGoogle::Apis::SlidesV1::Placeholder

The placeholder information that uniquely identifies a placeholder shape. Corresponds to the JSON property placeholder



1213
1214
1215
# File 'lib/google/apis/slides_v1/classes.rb', line 1213

def placeholder
  @placeholder
end

#source_urlString

The source URL is the URL used to insert the image. The source URL can be empty. Corresponds to the JSON property sourceUrl

Returns:

  • (String)


1219
1220
1221
# File 'lib/google/apis/slides_v1/classes.rb', line 1219

def source_url
  @source_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1226
1227
1228
1229
1230
1231
# File 'lib/google/apis/slides_v1/classes.rb', line 1226

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