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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GridCoordinate

Returns a new instance of GridCoordinate.



5584
5585
5586
# File 'generated/google/apis/sheets_v4/classes.rb', line 5584

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)


5572
5573
5574
# File 'generated/google/apis/sheets_v4/classes.rb', line 5572

def column_index
  @column_index
end

#row_indexFixnum

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

Returns:

  • (Fixnum)


5577
5578
5579
# File 'generated/google/apis/sheets_v4/classes.rb', line 5577

def row_index
  @row_index
end

#sheet_idFixnum

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

Returns:

  • (Fixnum)


5582
5583
5584
# File 'generated/google/apis/sheets_v4/classes.rb', line 5582

def sheet_id
  @sheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5589
5590
5591
5592
5593
# File 'generated/google/apis/sheets_v4/classes.rb', line 5589

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