Class: Google::Apis::SheetsV4::UpdateValuesResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateValuesResponse

Returns a new instance of UpdateValuesResponse.



11175
11176
11177
# File 'lib/google/apis/sheets_v4/classes.rb', line 11175

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

Instance Attribute Details

#spreadsheet_idString

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

Returns:

  • (String)


11148
11149
11150
# File 'lib/google/apis/sheets_v4/classes.rb', line 11148

def spreadsheet_id
  @spreadsheet_id
end

#updated_cellsFixnum

The number of cells updated. Corresponds to the JSON property updatedCells

Returns:

  • (Fixnum)


11153
11154
11155
# File 'lib/google/apis/sheets_v4/classes.rb', line 11153

def updated_cells
  @updated_cells
end

#updated_columnsFixnum

The number of columns where at least one cell in the column was updated. Corresponds to the JSON property updatedColumns

Returns:

  • (Fixnum)


11158
11159
11160
# File 'lib/google/apis/sheets_v4/classes.rb', line 11158

def updated_columns
  @updated_columns
end

#updated_dataGoogle::Apis::SheetsV4::ValueRange

Data within a range of the spreadsheet. Corresponds to the JSON property updatedData



11163
11164
11165
# File 'lib/google/apis/sheets_v4/classes.rb', line 11163

def updated_data
  @updated_data
end

#updated_rangeString

The range (in A1 notation) that updates were applied to. Corresponds to the JSON property updatedRange

Returns:

  • (String)


11168
11169
11170
# File 'lib/google/apis/sheets_v4/classes.rb', line 11168

def updated_range
  @updated_range
end

#updated_rowsFixnum

The number of rows where at least one cell in the row was updated. Corresponds to the JSON property updatedRows

Returns:

  • (Fixnum)


11173
11174
11175
# File 'lib/google/apis/sheets_v4/classes.rb', line 11173

def updated_rows
  @updated_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11180
11181
11182
11183
11184
11185
11186
11187
# File 'lib/google/apis/sheets_v4/classes.rb', line 11180

def update!(**args)
  @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
  @updated_cells = args[:updated_cells] if args.key?(:updated_cells)
  @updated_columns = args[:updated_columns] if args.key?(:updated_columns)
  @updated_data = args[:updated_data] if args.key?(:updated_data)
  @updated_range = args[:updated_range] if args.key?(:updated_range)
  @updated_rows = args[:updated_rows] if args.key?(:updated_rows)
end