Class: Google::Apis::SlidesV1::InsertTableColumnsRequest

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

Inserts columns into a table. Other columns in the table will be resized to fit the new column.

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) ⇒ InsertTableColumnsRequest

Returns a new instance of InsertTableColumnsRequest



1358
1359
1360
# File 'generated/google/apis/slides_v1/classes.rb', line 1358

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

Instance Attribute Details

#cell_locationGoogle::Apis::SlidesV1::TableCellLocation

A location of a single table cell within a table. Corresponds to the JSON property cellLocation



1338
1339
1340
# File 'generated/google/apis/slides_v1/classes.rb', line 1338

def cell_location
  @cell_location
end

#insert_rightBoolean Also known as: insert_right?

Whether to insert new columns to the right of the reference cell location.

  • True: insert to the right.
  • False: insert to the left. Corresponds to the JSON property insertRight

Returns:

  • (Boolean)


1345
1346
1347
# File 'generated/google/apis/slides_v1/classes.rb', line 1345

def insert_right
  @insert_right
end

#numberFixnum

The number of columns to be inserted. Maximum 20 per request. Corresponds to the JSON property number

Returns:

  • (Fixnum)


1351
1352
1353
# File 'generated/google/apis/slides_v1/classes.rb', line 1351

def number
  @number
end

#table_object_idString

The table to insert columns into. Corresponds to the JSON property tableObjectId

Returns:

  • (String)


1356
1357
1358
# File 'generated/google/apis/slides_v1/classes.rb', line 1356

def table_object_id
  @table_object_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1363
1364
1365
1366
1367
1368
# File 'generated/google/apis/slides_v1/classes.rb', line 1363

def update!(**args)
  @cell_location = args[:cell_location] if args.key?(:cell_location)
  @insert_right = args[:insert_right] if args.key?(:insert_right)
  @number = args[:number] if args.key?(:number)
  @table_object_id = args[:table_object_id] if args.key?(:table_object_id)
end