Class: Google::Apis::SheetsV4::FindReplaceResponse

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 result of the find/replace.

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

Returns a new instance of FindReplaceResponse.



5488
5489
5490
# File 'generated/google/apis/sheets_v4/classes.rb', line 5488

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

Instance Attribute Details

#formulas_changedFixnum

The number of formula cells changed. Corresponds to the JSON property formulasChanged

Returns:

  • (Fixnum)


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

def formulas_changed
  @formulas_changed
end

#occurrences_changedFixnum

The number of occurrences (possibly multiple within a cell) changed. For example, if replacing "e" with "o" in "Google Sheets", this would be "3" because "Google Sheets" -> "Googlo Shoots". Corresponds to the JSON property occurrencesChanged

Returns:

  • (Fixnum)


5471
5472
5473
# File 'generated/google/apis/sheets_v4/classes.rb', line 5471

def occurrences_changed
  @occurrences_changed
end

#rows_changedFixnum

The number of rows changed. Corresponds to the JSON property rowsChanged

Returns:

  • (Fixnum)


5476
5477
5478
# File 'generated/google/apis/sheets_v4/classes.rb', line 5476

def rows_changed
  @rows_changed
end

#sheets_changedFixnum

The number of sheets changed. Corresponds to the JSON property sheetsChanged

Returns:

  • (Fixnum)


5481
5482
5483
# File 'generated/google/apis/sheets_v4/classes.rb', line 5481

def sheets_changed
  @sheets_changed
end

#values_changedFixnum

The number of non-formula cells changed. Corresponds to the JSON property valuesChanged

Returns:

  • (Fixnum)


5486
5487
5488
# File 'generated/google/apis/sheets_v4/classes.rb', line 5486

def values_changed
  @values_changed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5493
5494
5495
5496
5497
5498
5499
# File 'generated/google/apis/sheets_v4/classes.rb', line 5493

def update!(**args)
  @formulas_changed = args[:formulas_changed] if args.key?(:formulas_changed)
  @occurrences_changed = args[:occurrences_changed] if args.key?(:occurrences_changed)
  @rows_changed = args[:rows_changed] if args.key?(:rows_changed)
  @sheets_changed = args[:sheets_changed] if args.key?(:sheets_changed)
  @values_changed = args[:values_changed] if args.key?(:values_changed)
end