Class: Google::Apis::DocsV1::Table
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::Table
- 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 table.
Instance Attribute Summary collapse
-
#columns ⇒ Fixnum
Number of columns in the table.
-
#rows ⇒ Fixnum
Number of rows in the table.
-
#suggested_deletion_ids ⇒ Array<String>
The suggested deletion IDs.
-
#suggested_insertion_ids ⇒ Array<String>
The suggested insertion IDs.
-
#table_rows ⇒ Array<Google::Apis::DocsV1::TableRow>
The contents and style of each row.
-
#table_style ⇒ Google::Apis::DocsV1::TableStyle
Styles that apply to a table.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Table
constructor
A new instance of Table.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Table
Returns a new instance of Table.
5632 5633 5634 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5632 def initialize(**args) update!(**args) end |
Instance Attribute Details
#columns ⇒ Fixnum
Number of columns in the table. It's possible for a table to be non-
rectangular, so some rows may have a different number of cells.
Corresponds to the JSON property columns
5603 5604 5605 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5603 def columns @columns end |
#rows ⇒ Fixnum
Number of rows in the table.
Corresponds to the JSON property rows
5608 5609 5610 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5608 def rows @rows end |
#suggested_deletion_ids ⇒ Array<String>
The suggested deletion IDs. If empty, then there are no suggested deletions of
this content.
Corresponds to the JSON property suggestedDeletionIds
5614 5615 5616 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5614 def suggested_deletion_ids @suggested_deletion_ids end |
#suggested_insertion_ids ⇒ Array<String>
The suggested insertion IDs. A Table 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
5620 5621 5622 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5620 def suggested_insertion_ids @suggested_insertion_ids end |
#table_rows ⇒ Array<Google::Apis::DocsV1::TableRow>
The contents and style of each row.
Corresponds to the JSON property tableRows
5625 5626 5627 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5625 def table_rows @table_rows end |
#table_style ⇒ Google::Apis::DocsV1::TableStyle
Styles that apply to a table.
Corresponds to the JSON property tableStyle
5630 5631 5632 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5630 def table_style @table_style end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5637 5638 5639 5640 5641 5642 5643 5644 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5637 def update!(**args) @columns = args[:columns] if args.key?(:columns) @rows = args[:rows] if args.key?(:rows) @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) @table_rows = args[:table_rows] if args.key?(:table_rows) @table_style = args[:table_style] if args.key?(:table_style) end |