Class: Google::Apis::DocsV1::StructuralElement
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::StructuralElement
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb
Overview
A StructuralElement describes content that provides structure to the document.
Instance Attribute Summary collapse
-
#end_index ⇒ Fixnum
The zero-based end index of this structural element, exclusive, in UTF-16 code units.
-
#paragraph ⇒ Google::Apis::DocsV1::Paragraph
A StructuralElement representing a paragraph.
-
#section_break ⇒ Google::Apis::DocsV1::SectionBreak
A StructuralElement representing a section break.
-
#start_index ⇒ Fixnum
The zero-based start index of this structural element, in UTF-16 code units.
-
#table ⇒ Google::Apis::DocsV1::Table
A StructuralElement representing a table.
-
#table_of_contents ⇒ Google::Apis::DocsV1::TableOfContents
A StructuralElement representing a table of contents.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StructuralElement
constructor
A new instance of StructuralElement.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ StructuralElement
Returns a new instance of StructuralElement
4425 4426 4427 |
# File 'generated/google/apis/docs_v1/classes.rb', line 4425 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_index ⇒ Fixnum
The zero-based end index of this structural element, exclusive, in UTF-16
code units.
Corresponds to the JSON property endIndex
4388 4389 4390 |
# File 'generated/google/apis/docs_v1/classes.rb', line 4388 def end_index @end_index end |
#paragraph ⇒ Google::Apis::DocsV1::Paragraph
A StructuralElement representing a
paragraph. A paragraph is a range of content that is terminated with a
newline character.
Corresponds to the JSON property paragraph
4395 4396 4397 |
# File 'generated/google/apis/docs_v1/classes.rb', line 4395 def paragraph @paragraph end |
#section_break ⇒ Google::Apis::DocsV1::SectionBreak
A StructuralElement representing a
section break. A section is a range of content which 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.
Corresponds to the JSON property sectionBreak
4405 4406 4407 |
# File 'generated/google/apis/docs_v1/classes.rb', line 4405 def section_break @section_break end |
#start_index ⇒ Fixnum
The zero-based start index of this structural element, in UTF-16 code
units.
Corresponds to the JSON property startIndex
4411 4412 4413 |
# File 'generated/google/apis/docs_v1/classes.rb', line 4411 def start_index @start_index end |
#table ⇒ Google::Apis::DocsV1::Table
A StructuralElement representing a
table.
Corresponds to the JSON property table
4417 4418 4419 |
# File 'generated/google/apis/docs_v1/classes.rb', line 4417 def table @table end |
#table_of_contents ⇒ Google::Apis::DocsV1::TableOfContents
A StructuralElement representing
a table of contents.
Corresponds to the JSON property tableOfContents
4423 4424 4425 |
# File 'generated/google/apis/docs_v1/classes.rb', line 4423 def table_of_contents @table_of_contents end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4430 4431 4432 4433 4434 4435 4436 4437 |
# File 'generated/google/apis/docs_v1/classes.rb', line 4430 def update!(**args) @end_index = args[:end_index] if args.key?(:end_index) @paragraph = args[:paragraph] if args.key?(:paragraph) @section_break = args[:section_break] if args.key?(:section_break) @start_index = args[:start_index] if args.key?(:start_index) @table = args[:table] if args.key?(:table) @table_of_contents = args[:table_of_contents] if args.key?(:table_of_contents) end |