Class: Google::Apis::SheetsV4::GridData

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

Data in the grid, as well as metadata about the dimensions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GridData

Returns a new instance of GridData.



6005
6006
6007
# File 'lib/google/apis/sheets_v4/classes.rb', line 6005

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

Instance Attribute Details

#column_metadataArray<Google::Apis::SheetsV4::DimensionProperties>

Metadata about the requested columns in the grid, starting with the column in start_column. Corresponds to the JSON property columnMetadata



5981
5982
5983
# File 'lib/google/apis/sheets_v4/classes.rb', line 5981

def 
  @column_metadata
end

#row_dataArray<Google::Apis::SheetsV4::RowData>

The data in the grid, one entry per row, starting with the row in startRow. The values in RowData will correspond to columns starting at start_column. Corresponds to the JSON property rowData



5987
5988
5989
# File 'lib/google/apis/sheets_v4/classes.rb', line 5987

def row_data
  @row_data
end

#row_metadataArray<Google::Apis::SheetsV4::DimensionProperties>

Metadata about the requested rows in the grid, starting with the row in start_row. Corresponds to the JSON property rowMetadata



5993
5994
5995
# File 'lib/google/apis/sheets_v4/classes.rb', line 5993

def 
  @row_metadata
end

#start_columnFixnum

The first column this GridData refers to, zero-based. Corresponds to the JSON property startColumn

Returns:

  • (Fixnum)


5998
5999
6000
# File 'lib/google/apis/sheets_v4/classes.rb', line 5998

def start_column
  @start_column
end

#start_rowFixnum

The first row this GridData refers to, zero-based. Corresponds to the JSON property startRow

Returns:

  • (Fixnum)


6003
6004
6005
# File 'lib/google/apis/sheets_v4/classes.rb', line 6003

def start_row
  @start_row
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6010
6011
6012
6013
6014
6015
6016
# File 'lib/google/apis/sheets_v4/classes.rb', line 6010

def update!(**args)
  @column_metadata = args[:column_metadata] if args.key?(:column_metadata)
  @row_data = args[:row_data] if args.key?(:row_data)
  @row_metadata = args[:row_metadata] if args.key?(:row_metadata)
  @start_column = args[:start_column] if args.key?(:start_column)
  @start_row = args[:start_row] if args.key?(:start_row)
end