Class: Google::Apis::SheetsV4::GridCoordinate

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

Overview

A coordinate in a sheet. All indexes are zero-based.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GridCoordinate

Returns a new instance of GridCoordinate.



5875
5876
5877
# File 'lib/google/apis/sheets_v4/classes.rb', line 5875

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

Instance Attribute Details

#column_indexFixnum

The column index of the coordinate. Corresponds to the JSON property columnIndex

Returns:

  • (Fixnum)


5863
5864
5865
# File 'lib/google/apis/sheets_v4/classes.rb', line 5863

def column_index
  @column_index
end

#row_indexFixnum

The row index of the coordinate. Corresponds to the JSON property rowIndex

Returns:

  • (Fixnum)


5868
5869
5870
# File 'lib/google/apis/sheets_v4/classes.rb', line 5868

def row_index
  @row_index
end

#sheet_idFixnum

The sheet this coordinate is on. Corresponds to the JSON property sheetId

Returns:

  • (Fixnum)


5873
5874
5875
# File 'lib/google/apis/sheets_v4/classes.rb', line 5873

def sheet_id
  @sheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5880
5881
5882
5883
5884
# File 'lib/google/apis/sheets_v4/classes.rb', line 5880

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