Class: Google::Apis::SheetsV4::GridCoordinate
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::GridCoordinate
- 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
-
#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.
Constructor Details
#initialize(**args) ⇒ GridCoordinate
Returns a new instance of GridCoordinate.
5969 5970 5971 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 5969 def initialize(**args) update!(**args) end |
Instance Attribute Details
#column_index ⇒ Fixnum
The column index of the coordinate.
Corresponds to the JSON property columnIndex
5957 5958 5959 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 5957 def column_index @column_index end |
#row_index ⇒ Fixnum
The row index of the coordinate.
Corresponds to the JSON property rowIndex
5962 5963 5964 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 5962 def row_index @row_index end |
#sheet_id ⇒ Fixnum
The sheet this coordinate is on.
Corresponds to the JSON property sheetId
5967 5968 5969 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 5967 def sheet_id @sheet_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5974 5975 5976 5977 5978 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 5974 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 |