Class: Google::Apis::DocsV1::InsertTableRequest

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

Inserts a table at the specified location. A newline character will be inserted before the inserted 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) ⇒ InsertTableRequest

Returns a new instance of InsertTableRequest



2041
2042
2043
# File 'generated/google/apis/docs_v1/classes.rb', line 2041

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

Instance Attribute Details

#columnsFixnum

The number of columns in the table. Corresponds to the JSON property columns

Returns:

  • (Fixnum)


2023
2024
2025
# File 'generated/google/apis/docs_v1/classes.rb', line 2023

def columns
  @columns
end

#end_of_segment_locationGoogle::Apis::DocsV1::EndOfSegmentLocation

Location at the end of a body, header, footer or footnote. The location is immediately before the last newline in the document segment. Corresponds to the JSON property endOfSegmentLocation



2029
2030
2031
# File 'generated/google/apis/docs_v1/classes.rb', line 2029

def end_of_segment_location
  @end_of_segment_location
end

#locationGoogle::Apis::DocsV1::Location

A particular location in the document. Corresponds to the JSON property location



2034
2035
2036
# File 'generated/google/apis/docs_v1/classes.rb', line 2034

def location
  @location
end

#rowsFixnum

The number of rows in the table. Corresponds to the JSON property rows

Returns:

  • (Fixnum)


2039
2040
2041
# File 'generated/google/apis/docs_v1/classes.rb', line 2039

def rows
  @rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2046
2047
2048
2049
2050
2051
# File 'generated/google/apis/docs_v1/classes.rb', line 2046

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