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

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

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

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) ⇒ GridData

Returns a new instance of GridData



2560
2561
2562
# File 'generated/google/apis/sheets_v4/classes.rb', line 2560

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



2534
2535
2536
# File 'generated/google/apis/sheets_v4/classes.rb', line 2534

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



2553
2554
2555
# File 'generated/google/apis/sheets_v4/classes.rb', line 2553

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



2545
2546
2547
# File 'generated/google/apis/sheets_v4/classes.rb', line 2545

def 
  @row_metadata
end

#start_columnFixnum

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

Returns:

  • (Fixnum)


2539
2540
2541
# File 'generated/google/apis/sheets_v4/classes.rb', line 2539

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)


2558
2559
2560
# File 'generated/google/apis/sheets_v4/classes.rb', line 2558

def start_row
  @start_row
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2565
2566
2567
2568
2569
2570
2571
# File 'generated/google/apis/sheets_v4/classes.rb', line 2565

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