Class: Google::Apis::SlidesV1::StretchedPictureFill

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

The stretched picture fill. The page or page element is filled entirely with the specified picture. The picture is stretched to fit its container.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StretchedPictureFill

Returns a new instance of StretchedPictureFill.



3640
3641
3642
# File 'lib/google/apis/slides_v1/classes.rb', line 3640

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

Instance Attribute Details

#content_urlString

Reading the content_url: An URL to a picture with a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL effectively accesses the picture as the original requester. Access to the picture may be lost if the presentation's sharing settings change. Writing the content_url: The picture is fetched once at insertion time and a copy is stored for display inside the presentation. Pictures must be less than 50MB in size, cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF format. The provided URL can be at most 2 kB in length. Corresponds to the JSON property contentUrl

Returns:

  • (String)


3633
3634
3635
# File 'lib/google/apis/slides_v1/classes.rb', line 3633

def content_url
  @content_url
end

#sizeGoogle::Apis::SlidesV1::Size

A width and height. Corresponds to the JSON property size



3638
3639
3640
# File 'lib/google/apis/slides_v1/classes.rb', line 3638

def size
  @size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3645
3646
3647
3648
# File 'lib/google/apis/slides_v1/classes.rb', line 3645

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