Class: Google::Apis::SheetsV4::BatchClearValuesResponse

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 clearing a range of values in a spreadsheet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchClearValuesResponse

Returns a new instance of BatchClearValuesResponse.



1574
1575
1576
# File 'lib/google/apis/sheets_v4/classes.rb', line 1574

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

Instance Attribute Details

#cleared_rangesArray<String>

The ranges that were cleared, in A1 notation. If the requests are for an unbounded range or a ranger larger than the bounds of the sheet, this is the actual ranges that were cleared, bounded to the sheet's limits. Corresponds to the JSON property clearedRanges

Returns:

  • (Array<String>)


1567
1568
1569
# File 'lib/google/apis/sheets_v4/classes.rb', line 1567

def cleared_ranges
  @cleared_ranges
end

#spreadsheet_idString

The spreadsheet the updates were applied to. Corresponds to the JSON property spreadsheetId

Returns:

  • (String)


1572
1573
1574
# File 'lib/google/apis/sheets_v4/classes.rb', line 1572

def spreadsheet_id
  @spreadsheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1579
1580
1581
1582
# File 'lib/google/apis/sheets_v4/classes.rb', line 1579

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