Class: Google::Apis::DocsV1::SectionBreak

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

Overview

A StructuralElement representing a section break. A section is a range of content that has the same SectionStyle. A section break represents the start of a new section, and the section style applies to the section after the section break. The document body always begins with a section break.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SectionBreak

Returns a new instance of SectionBreak.



5145
5146
5147
# File 'lib/google/apis/docs_v1/classes.rb', line 5145

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

Instance Attribute Details

#section_styleGoogle::Apis::DocsV1::SectionStyle

The styling that applies to a section. Corresponds to the JSON property sectionStyle



5130
5131
5132
# File 'lib/google/apis/docs_v1/classes.rb', line 5130

def section_style
  @section_style
end

#suggested_deletion_idsArray<String>

The suggested deletion IDs. If empty, then there are no suggested deletions of this content. Corresponds to the JSON property suggestedDeletionIds

Returns:

  • (Array<String>)


5136
5137
5138
# File 'lib/google/apis/docs_v1/classes.rb', line 5136

def suggested_deletion_ids
  @suggested_deletion_ids
end

#suggested_insertion_idsArray<String>

The suggested insertion IDs. A SectionBreak may have multiple insertion IDs if it's a nested suggested change. If empty, then this is not a suggested insertion. Corresponds to the JSON property suggestedInsertionIds

Returns:

  • (Array<String>)


5143
5144
5145
# File 'lib/google/apis/docs_v1/classes.rb', line 5143

def suggested_insertion_ids
  @suggested_insertion_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5150
5151
5152
5153
5154
# File 'lib/google/apis/docs_v1/classes.rb', line 5150

def update!(**args)
  @section_style = args[:section_style] if args.key?(:section_style)
  @suggested_deletion_ids = args[:suggested_deletion_ids] if args.key?(:suggested_deletion_ids)
  @suggested_insertion_ids = args[:suggested_insertion_ids] if args.key?(:suggested_insertion_ids)
end