Class: Google::Apis::SlidesV1::Presentation

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 Google Slides presentation.

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

Returns a new instance of Presentation



2279
2280
2281
# File 'generated/google/apis/slides_v1/classes.rb', line 2279

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

Instance Attribute Details

#layoutsArray<Google::Apis::SlidesV1::Page>

The layouts in the presentation. A layout is a template that determines how content is arranged and styled on the slides that inherit from that layout. Corresponds to the JSON property layouts

Returns:



2223
2224
2225
# File 'generated/google/apis/slides_v1/classes.rb', line 2223

def layouts
  @layouts
end

#localeString

The locale of the presentation, as an IETF BCP 47 language tag. Corresponds to the JSON property locale

Returns:

  • (String)


2246
2247
2248
# File 'generated/google/apis/slides_v1/classes.rb', line 2246

def locale
  @locale
end

#mastersArray<Google::Apis::SlidesV1::Page>

The slide masters in the presentation. A slide master contains all common page elements and the common properties for a set of layouts. They serve three purposes:

  • Placeholder shapes on a master contain the default text styles and shape properties of all placeholder shapes on pages that use that master.
  • The master page properties define the common page properties inherited by its layouts.
  • Any other shapes on the master slide will appear on all slides using that master, regardless of their layout. Corresponds to the JSON property masters

Returns:



2241
2242
2243
# File 'generated/google/apis/slides_v1/classes.rb', line 2241

def masters
  @masters
end

#notes_masterGoogle::Apis::SlidesV1::Page

A page in a presentation. Corresponds to the JSON property notesMaster



2216
2217
2218
# File 'generated/google/apis/slides_v1/classes.rb', line 2216

def notes_master
  @notes_master
end

#page_sizeGoogle::Apis::SlidesV1::Size

A width and height. Corresponds to the JSON property pageSize



2251
2252
2253
# File 'generated/google/apis/slides_v1/classes.rb', line 2251

def page_size
  @page_size
end

#presentation_idString

The ID of the presentation. Corresponds to the JSON property presentationId

Returns:

  • (String)


2256
2257
2258
# File 'generated/google/apis/slides_v1/classes.rb', line 2256

def presentation_id
  @presentation_id
end

#revision_idString

The revision ID of the presentation. Can be used in update requests to assert that the presentation revision hasn't changed since the last read operation. Only populated if the user has edit access to the presentation. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated; however, a changed ID can also be due to internal factors such as ID format changes. Corresponds to the JSON property revisionId

Returns:

  • (String)


2277
2278
2279
# File 'generated/google/apis/slides_v1/classes.rb', line 2277

def revision_id
  @revision_id
end

#slidesArray<Google::Apis::SlidesV1::Page>

The slides in the presentation. A slide inherits properties from a slide layout. Corresponds to the JSON property slides

Returns:



2262
2263
2264
# File 'generated/google/apis/slides_v1/classes.rb', line 2262

def slides
  @slides
end

#titleString

The title of the presentation. Corresponds to the JSON property title

Returns:

  • (String)


2228
2229
2230
# File 'generated/google/apis/slides_v1/classes.rb', line 2228

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
# File 'generated/google/apis/slides_v1/classes.rb', line 2284

def update!(**args)
  @notes_master = args[:notes_master] if args.key?(:notes_master)
  @layouts = args[:layouts] if args.key?(:layouts)
  @title = args[:title] if args.key?(:title)
  @masters = args[:masters] if args.key?(:masters)
  @locale = args[:locale] if args.key?(:locale)
  @page_size = args[:page_size] if args.key?(:page_size)
  @presentation_id = args[:presentation_id] if args.key?(:presentation_id)
  @slides = args[:slides] if args.key?(:slides)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
end