Class: Google::Apis::SlidesV1::LayoutReference

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

Slide layout reference. This may reference either: - A predefined layout - One of the layouts in the presentation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LayoutReference

Returns a new instance of LayoutReference.



1531
1532
1533
# File 'lib/google/apis/slides_v1/classes.rb', line 1531

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

Instance Attribute Details

#layout_idString

Layout ID: the object ID of one of the layouts in the presentation. Corresponds to the JSON property layoutId

Returns:

  • (String)


1524
1525
1526
# File 'lib/google/apis/slides_v1/classes.rb', line 1524

def layout_id
  @layout_id
end

#predefined_layoutString

Predefined layout. Corresponds to the JSON property predefinedLayout

Returns:

  • (String)


1529
1530
1531
# File 'lib/google/apis/slides_v1/classes.rb', line 1529

def predefined_layout
  @predefined_layout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1536
1537
1538
1539
# File 'lib/google/apis/slides_v1/classes.rb', line 1536

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