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

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchGetValuesResponse

Returns a new instance of BatchGetValuesResponse.



1671
1672
1673
# File 'lib/google/apis/sheets_v4/classes.rb', line 1671

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)


1663
1664
1665
# File 'lib/google/apis/sheets_v4/classes.rb', line 1663

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



1669
1670
1671
# File 'lib/google/apis/sheets_v4/classes.rb', line 1669

def value_ranges
  @value_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1676
1677
1678
1679
# File 'lib/google/apis/sheets_v4/classes.rb', line 1676

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