Class: Google::Apis::DocsV1::TableCellLocation

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

Location of a single cell within 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) ⇒ TableCellLocation

Returns a new instance of TableCellLocation.


5092
5093
5094
# File 'generated/google/apis/docs_v1/classes.rb', line 5092

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

Instance Attribute Details

#column_indexFixnum

The zero-based column index. For example, the second column in the table has a column index of 1. Corresponds to the JSON property columnIndex

Returns:

  • (Fixnum)

5079
5080
5081
# File 'generated/google/apis/docs_v1/classes.rb', line 5079

def column_index
  @column_index
end

#row_indexFixnum

The zero-based row index. For example, the second row in the table has a row index of 1. Corresponds to the JSON property rowIndex

Returns:

  • (Fixnum)

5085
5086
5087
# File 'generated/google/apis/docs_v1/classes.rb', line 5085

def row_index
  @row_index
end

#table_start_locationGoogle::Apis::DocsV1::Location

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


5090
5091
5092
# File 'generated/google/apis/docs_v1/classes.rb', line 5090

def table_start_location
  @table_start_location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


5097
5098
5099
5100
5101
# File 'generated/google/apis/docs_v1/classes.rb', line 5097

def update!(**args)
  @column_index = args[:column_index] if args.key?(:column_index)
  @row_index = args[:row_index] if args.key?(:row_index)
  @table_start_location = args[:table_start_location] if args.key?(:table_start_location)
end