Class: Google::Apis::SheetsV4::PivotFilterSpec

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PivotFilterSpec

Returns a new instance of PivotFilterSpec.



7134
7135
7136
# File 'generated/google/apis/sheets_v4/classes.rb', line 7134

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

Instance Attribute Details

#column_offset_indexFixnum

The column offset of the source range. Corresponds to the JSON property columnOffsetIndex

Returns:

  • (Fixnum)


7122
7123
7124
# File 'generated/google/apis/sheets_v4/classes.rb', line 7122

def column_offset_index
  @column_offset_index
end

#data_source_column_referenceGoogle::Apis::SheetsV4::DataSourceColumnReference

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



7127
7128
7129
# File 'generated/google/apis/sheets_v4/classes.rb', line 7127

def data_source_column_reference
  @data_source_column_reference
end

#filter_criteriaGoogle::Apis::SheetsV4::PivotFilterCriteria

Criteria for showing/hiding rows in a pivot table. Corresponds to the JSON property filterCriteria



7132
7133
7134
# File 'generated/google/apis/sheets_v4/classes.rb', line 7132

def filter_criteria
  @filter_criteria
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7139
7140
7141
7142
7143
# File 'generated/google/apis/sheets_v4/classes.rb', line 7139

def update!(**args)
  @column_offset_index = args[:column_offset_index] if args.key?(:column_offset_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