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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/searchconsole_v1/classes.rb,
generated/google/apis/searchconsole_v1/representations.rb,
generated/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.



91
92
93
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 91

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

Instance Attribute Details

#dimensionString

Corresponds to the JSON property dimension

Returns:

  • (String)


79
80
81
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 79

def dimension
  @dimension
end

#expressionString

Corresponds to the JSON property expression

Returns:

  • (String)


84
85
86
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 84

def expression
  @expression
end

#operatorString

Corresponds to the JSON property operator

Returns:

  • (String)


89
90
91
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 89

def operator
  @operator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



96
97
98
99
100
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 96

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