Class: Google::Apis::SheetsV4::BatchGetValuesResponse

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

The response when retrieving more than one range of values in a spreadsheet.

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

Returns a new instance of BatchGetValuesResponse.


5460
5461
5462
# File 'generated/google/apis/sheets_v4/classes.rb', line 5460

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

Instance Attribute Details

#spreadsheet_idString

The ID of the spreadsheet the data was retrieved from. Corresponds to the JSON property spreadsheetId

Returns:

  • (String)

5458
5459
5460
# File 'generated/google/apis/sheets_v4/classes.rb', line 5458

def spreadsheet_id
  @spreadsheet_id
end

#value_rangesArray<Google::Apis::SheetsV4::ValueRange>

The requested values. The order of the ValueRanges is the same as the order of the requested ranges. Corresponds to the JSON property valueRanges


5453
5454
5455
# File 'generated/google/apis/sheets_v4/classes.rb', line 5453

def value_ranges
  @value_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


5465
5466
5467
5468
# File 'generated/google/apis/sheets_v4/classes.rb', line 5465

def update!(**args)
  @value_ranges = args[:value_ranges] if args.key?(:value_ranges)
  @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
end