Class: Google::Apis::SheetsV4::FilterCriteria

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

Criteria for showing/hiding rows in a filter or filter view.

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

Returns a new instance of FilterCriteria



5281
5282
5283
# File 'generated/google/apis/sheets_v4/classes.rb', line 5281

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

Instance Attribute Details

#conditionGoogle::Apis::SheetsV4::BooleanCondition

A condition that can evaluate to true or false. BooleanConditions are used by conditional formatting, data validation, and the criteria in filters. Corresponds to the JSON property condition



5279
5280
5281
# File 'generated/google/apis/sheets_v4/classes.rb', line 5279

def condition
  @condition
end

#hidden_valuesArray<String>

Values that should be hidden. Corresponds to the JSON property hiddenValues

Returns:

  • (Array<String>)


5272
5273
5274
# File 'generated/google/apis/sheets_v4/classes.rb', line 5272

def hidden_values
  @hidden_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5286
5287
5288
5289
# File 'generated/google/apis/sheets_v4/classes.rb', line 5286

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