Class: Google::Apis::DocsV1::DocumentTab

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 tab with document contents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DocumentTab

Returns a new instance of DocumentTab.



1462
1463
1464
# File 'lib/google/apis/docs_v1/classes.rb', line 1462

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

Instance Attribute Details

#bodyGoogle::Apis::DocsV1::Body

The document body. The body typically contains the full document contents except for headers, footers, and footnotes. Corresponds to the JSON property body



1403
1404
1405
# File 'lib/google/apis/docs_v1/classes.rb', line 1403

def body
  @body
end

#document_styleGoogle::Apis::DocsV1::DocumentStyle

The style of the document. Corresponds to the JSON property documentStyle



1408
1409
1410
# File 'lib/google/apis/docs_v1/classes.rb', line 1408

def document_style
  @document_style
end

#footersHash<String,Google::Apis::DocsV1::Footer>

The footers in the document tab, keyed by footer ID. Corresponds to the JSON property footers

Returns:



1413
1414
1415
# File 'lib/google/apis/docs_v1/classes.rb', line 1413

def footers
  @footers
end

#footnotesHash<String,Google::Apis::DocsV1::Footnote>

The footnotes in the document tab, keyed by footnote ID. Corresponds to the JSON property footnotes

Returns:



1418
1419
1420
# File 'lib/google/apis/docs_v1/classes.rb', line 1418

def footnotes
  @footnotes
end

#headersHash<String,Google::Apis::DocsV1::Header>

The headers in the document tab, keyed by header ID. Corresponds to the JSON property headers

Returns:



1423
1424
1425
# File 'lib/google/apis/docs_v1/classes.rb', line 1423

def headers
  @headers
end

#inline_objectsHash<String,Google::Apis::DocsV1::InlineObject>

The inline objects in the document tab, keyed by object ID. Corresponds to the JSON property inlineObjects

Returns:



1428
1429
1430
# File 'lib/google/apis/docs_v1/classes.rb', line 1428

def inline_objects
  @inline_objects
end

#listsHash<String,Google::Apis::DocsV1::List>

The lists in the document tab, keyed by list ID. Corresponds to the JSON property lists

Returns:



1433
1434
1435
# File 'lib/google/apis/docs_v1/classes.rb', line 1433

def lists
  @lists
end

#named_rangesHash<String,Google::Apis::DocsV1::NamedRanges>

The named ranges in the document tab, keyed by name. Corresponds to the JSON property namedRanges

Returns:



1438
1439
1440
# File 'lib/google/apis/docs_v1/classes.rb', line 1438

def named_ranges
  @named_ranges
end

#named_stylesGoogle::Apis::DocsV1::NamedStyles

The named styles. Paragraphs in the document can inherit their TextStyle and ParagraphStyle from these named styles. Corresponds to the JSON property namedStyles



1444
1445
1446
# File 'lib/google/apis/docs_v1/classes.rb', line 1444

def named_styles
  @named_styles
end

#positioned_objectsHash<String,Google::Apis::DocsV1::PositionedObject>

The positioned objects in the document tab, keyed by object ID. Corresponds to the JSON property positionedObjects

Returns:



1449
1450
1451
# File 'lib/google/apis/docs_v1/classes.rb', line 1449

def positioned_objects
  @positioned_objects
end

#suggested_document_style_changesHash<String,Google::Apis::DocsV1::SuggestedDocumentStyle>

The suggested changes to the style of the document tab, keyed by suggestion ID. Corresponds to the JSON property suggestedDocumentStyleChanges



1454
1455
1456
# File 'lib/google/apis/docs_v1/classes.rb', line 1454

def suggested_document_style_changes
  @suggested_document_style_changes
end

#suggested_named_styles_changesHash<String,Google::Apis::DocsV1::SuggestedNamedStyles>

The suggested changes to the named styles of the document tab, keyed by suggestion ID. Corresponds to the JSON property suggestedNamedStylesChanges



1460
1461
1462
# File 'lib/google/apis/docs_v1/classes.rb', line 1460

def suggested_named_styles_changes
  @suggested_named_styles_changes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
# File 'lib/google/apis/docs_v1/classes.rb', line 1467

def update!(**args)
  @body = args[:body] if args.key?(:body)
  @document_style = args[:document_style] if args.key?(:document_style)
  @footers = args[:footers] if args.key?(:footers)
  @footnotes = args[:footnotes] if args.key?(:footnotes)
  @headers = args[:headers] if args.key?(:headers)
  @inline_objects = args[:inline_objects] if args.key?(:inline_objects)
  @lists = args[:lists] if args.key?(:lists)
  @named_ranges = args[:named_ranges] if args.key?(:named_ranges)
  @named_styles = args[:named_styles] if args.key?(:named_styles)
  @positioned_objects = args[:positioned_objects] if args.key?(:positioned_objects)
  @suggested_document_style_changes = args[:suggested_document_style_changes] if args.key?(:suggested_document_style_changes)
  @suggested_named_styles_changes = args[:suggested_named_styles_changes] if args.key?(:suggested_named_styles_changes)
end