Class: Google::Apis::SlidesV1::Image
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::Image
- 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
-
#content_url ⇒ String
An URL to an image with a default lifetime of 30 minutes.
-
#image_properties ⇒ Google::Apis::SlidesV1::ImageProperties
The properties of the Image.
-
#source_url ⇒ String
The source URL is the URL used to insert the image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Image
constructor
A new instance of Image.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Image
Returns a new instance of Image.
1168 1169 1170 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1168 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_url ⇒ String
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
1155 1156 1157 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1155 def content_url @content_url end |
#image_properties ⇒ Google::Apis::SlidesV1::ImageProperties
The properties of the Image.
Corresponds to the JSON property imageProperties
1160 1161 1162 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1160 def image_properties @image_properties end |
#source_url ⇒ String
The source URL is the URL used to insert the image. The source URL can be
empty.
Corresponds to the JSON property sourceUrl
1166 1167 1168 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1166 def source_url @source_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1173 1174 1175 1176 1177 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1173 def update!(**args) @content_url = args[:content_url] if args.key?(:content_url) @image_properties = args[:image_properties] if args.key?(:image_properties) @source_url = args[:source_url] if args.key?(:source_url) end |