Class: Google::Apis::SheetsV4::GridCoordinate
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::GridCoordinate
- 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
-
#column_index ⇒ Fixnum
The column index of the coordinate.
-
#row_index ⇒ Fixnum
The row index of the coordinate.
-
#sheet_id ⇒ Fixnum
The sheet this coordinate is on.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GridCoordinate
constructor
A new instance of GridCoordinate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GridCoordinate
Returns a new instance of GridCoordinate
4970 4971 4972 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4970 def initialize(**args) update!(**args) end |
Instance Attribute Details
#column_index ⇒ Fixnum
The column index of the coordinate.
Corresponds to the JSON property columnIndex
4963 4964 4965 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4963 def column_index @column_index end |
#row_index ⇒ Fixnum
The row index of the coordinate.
Corresponds to the JSON property rowIndex
4958 4959 4960 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4958 def row_index @row_index end |
#sheet_id ⇒ Fixnum
The sheet this coordinate is on.
Corresponds to the JSON property sheetId
4968 4969 4970 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4968 def sheet_id @sheet_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4975 4976 4977 4978 4979 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4975 def update!(**args) @row_index = args[:row_index] if args.key?(:row_index) @column_index = args[:column_index] if args.key?(:column_index) @sheet_id = args[:sheet_id] if args.key?(:sheet_id) end |