Class: Google::Apis::SheetsV4::FilterSpec

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 filter criteria associated with a specific column.

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

Returns a new instance of FilterSpec.



5343
5344
5345
# File 'generated/google/apis/sheets_v4/classes.rb', line 5343

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

Instance Attribute Details

#column_indexFixnum

The column index. Corresponds to the JSON property columnIndex

Returns:

  • (Fixnum)


5331
5332
5333
# File 'generated/google/apis/sheets_v4/classes.rb', line 5331

def column_index
  @column_index
end

#data_source_column_referenceGoogle::Apis::SheetsV4::DataSourceColumnReference

An unique identifier that references a data source column. Corresponds to the JSON property dataSourceColumnReference



5336
5337
5338
# File 'generated/google/apis/sheets_v4/classes.rb', line 5336

def data_source_column_reference
  @data_source_column_reference
end

#filter_criteriaGoogle::Apis::SheetsV4::FilterCriteria

Criteria for showing/hiding rows in a filter or filter view. Corresponds to the JSON property filterCriteria



5341
5342
5343
# File 'generated/google/apis/sheets_v4/classes.rb', line 5341

def filter_criteria
  @filter_criteria
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5348
5349
5350
5351
5352
# File 'generated/google/apis/sheets_v4/classes.rb', line 5348

def update!(**args)
  @column_index = args[:column_index] if args.key?(:column_index)
  @data_source_column_reference = args[:data_source_column_reference] if args.key?(:data_source_column_reference)
  @filter_criteria = args[:filter_criteria] if args.key?(:filter_criteria)
end