Class: Google::Apis::SlidesV1::Table

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/google/apis/slides_v1/representations.rb

Overview

A PageElement kind 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



2900
2901
2902
# File 'generated/google/apis/slides_v1/classes.rb', line 2900

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

Instance Attribute Details

#columnsFixnum

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

Returns:

  • (Fixnum)


2880
2881
2882
# File 'generated/google/apis/slides_v1/classes.rb', line 2880

def columns
  @columns
end

#rowsFixnum

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

Returns:

  • (Fixnum)


2893
2894
2895
# File 'generated/google/apis/slides_v1/classes.rb', line 2893

def rows
  @rows
end

#table_columnsArray<Google::Apis::SlidesV1::TableColumnProperties>

Properties of each column. Corresponds to the JSON property tableColumns



2898
2899
2900
# File 'generated/google/apis/slides_v1/classes.rb', line 2898

def table_columns
  @table_columns
end

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

Properties and contents of each row. Cells that span multiple rows are contained in only one of these rows and have a row_span greater than 1. Corresponds to the JSON property tableRows



2888
2889
2890
# File 'generated/google/apis/slides_v1/classes.rb', line 2888

def table_rows
  @table_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2905
2906
2907
2908
2909
2910
# File 'generated/google/apis/slides_v1/classes.rb', line 2905

def update!(**args)
  @columns = args[:columns] if args.key?(:columns)
  @table_rows = args[:table_rows] if args.key?(:table_rows)
  @rows = args[:rows] if args.key?(:rows)
  @table_columns = args[:table_columns] if args.key?(:table_columns)
end