Class: Google::Apis::DocsV1::Table

Inherits:
Object
  • Object
show all
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 representing a table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Table

Returns a new instance of Table.



5233
5234
5235
# File 'generated/google/apis/docs_v1/classes.rb', line 5233

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

Instance Attribute Details

#columnsFixnum

Number of columns in the table. It is possible for a table to be non-rectangular, so some rows may have a different number of cells. Corresponds to the JSON property columns

Returns:

  • (Fixnum)


5203
5204
5205
# File 'generated/google/apis/docs_v1/classes.rb', line 5203

def columns
  @columns
end

#rowsFixnum

Number of rows in the table. Corresponds to the JSON property rows

Returns:

  • (Fixnum)


5208
5209
5210
# File 'generated/google/apis/docs_v1/classes.rb', line 5208

def rows
  @rows
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>)


5214
5215
5216
# File 'generated/google/apis/docs_v1/classes.rb', line 5214

def suggested_deletion_ids
  @suggested_deletion_ids
end

#suggested_insertion_idsArray<String>

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

Returns:

  • (Array<String>)


5221
5222
5223
# File 'generated/google/apis/docs_v1/classes.rb', line 5221

def suggested_insertion_ids
  @suggested_insertion_ids
end

#table_rowsArray<Google::Apis::DocsV1::TableRow>

The contents and style of each row. Corresponds to the JSON property tableRows

Returns:



5226
5227
5228
# File 'generated/google/apis/docs_v1/classes.rb', line 5226

def table_rows
  @table_rows
end

#table_styleGoogle::Apis::DocsV1::TableStyle

Styles that apply to a table. Corresponds to the JSON property tableStyle



5231
5232
5233
# File 'generated/google/apis/docs_v1/classes.rb', line 5231

def table_style
  @table_style
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5238
5239
5240
5241
5242
5243
5244
5245
# File 'generated/google/apis/docs_v1/classes.rb', line 5238

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