Class: Google::Apis::SheetsV4::FilterCriteria
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::FilterCriteria
- 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
-
#condition ⇒ Google::Apis::SheetsV4::BooleanCondition
A condition that can evaluate to true or false.
-
#hidden_values ⇒ Array<String>
Values that should be hidden.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FilterCriteria
constructor
A new instance of FilterCriteria.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FilterCriteria
Returns a new instance of FilterCriteria
7230 7231 7232 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7230 def initialize(**args) update!(**args) end |
Instance Attribute Details
#condition ⇒ Google::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
7228 7229 7230 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7228 def condition @condition end |
#hidden_values ⇒ Array<String>
Values that should be hidden.
Corresponds to the JSON property hiddenValues
7221 7222 7223 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7221 def hidden_values @hidden_values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7235 7236 7237 7238 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7235 def update!(**args) @hidden_values = args[:hidden_values] if args.key?(:hidden_values) @condition = args[:condition] if args.key?(:condition) end |