Class: Google::Apis::SearchconsoleV1::ApiDimensionFilter

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchconsole_v1/classes.rb,
lib/google/apis/searchconsole_v1/representations.rb,
lib/google/apis/searchconsole_v1/representations.rb

Overview

A filter test to be applied to each row in the data set, where a match can return the row. Filters are string comparisons, and values and dimension names are not case-sensitive. Individual filters are either AND'ed or OR'ed within their parent filter group, according to the group's group type. You do not need to group by a specified dimension to filter against it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApiDimensionFilter

Returns a new instance of ApiDimensionFilter.



182
183
184
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 182

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

Instance Attribute Details

#dimensionString

Corresponds to the JSON property dimension

Returns:

  • (String)


170
171
172
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 170

def dimension
  @dimension
end

#expressionString

Corresponds to the JSON property expression

Returns:

  • (String)


175
176
177
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 175

def expression
  @expression
end

#operatorString

Corresponds to the JSON property operator

Returns:

  • (String)


180
181
182
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 180

def operator
  @operator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



187
188
189
190
191
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 187

def update!(**args)
  @dimension = args[:dimension] if args.key?(:dimension)
  @expression = args[:expression] if args.key?(:expression)
  @operator = args[:operator] if args.key?(:operator)
end