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.



4762
4763
4764
# File 'lib/google/apis/docs_v1/classes.rb', line 4762

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



4747
4748
4749
# File 'lib/google/apis/docs_v1/classes.rb', line 4747

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


4753
4754
4755
# File 'lib/google/apis/docs_v1/classes.rb', line 4753

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


4760
4761
4762
# File 'lib/google/apis/docs_v1/classes.rb', line 4760

def suggested_insertion_ids
  @suggested_insertion_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4767
4768
4769
4770
4771
# File 'lib/google/apis/docs_v1/classes.rb', line 4767

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