Class: Google::Apis::AnalyticsreportingV4::DimensionFilter
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::DimensionFilter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/analyticsreporting_v4/classes.rb,
generated/google/apis/analyticsreporting_v4/representations.rb,
generated/google/apis/analyticsreporting_v4/representations.rb
Overview
Dimension filter specifies the filtering options on a dimension.
Instance Attribute Summary collapse
-
#case_sensitive ⇒ Boolean
(also: #case_sensitive?)
Should the match be case sensitive? Default is false.
-
#dimension_name ⇒ String
The dimension to filter on.
-
#expressions ⇒ Array<String>
Strings or regular expression to match against.
-
#not ⇒ Boolean
(also: #not?)
Logical
NOToperator. -
#operator ⇒ String
How to match the dimension to the expression.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DimensionFilter
constructor
A new instance of DimensionFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DimensionFilter
Returns a new instance of DimensionFilter
1171 1172 1173 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1171 def initialize(**args) update!(**args) end |
Instance Attribute Details
#case_sensitive ⇒ Boolean Also known as: case_sensitive?
Should the match be case sensitive? Default is false.
Corresponds to the JSON property caseSensitive
1168 1169 1170 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1168 def case_sensitive @case_sensitive end |
#dimension_name ⇒ String
The dimension to filter on. A DimensionFilter must contain a dimension.
Corresponds to the JSON property dimensionName
1143 1144 1145 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1143 def dimension_name @dimension_name end |
#expressions ⇒ Array<String>
Strings or regular expression to match against. Only the first value of
the list is used for comparison unless the operator is IN_LIST.
If IN_LIST operator, then the entire list is used to filter the
dimensions as explained in the description of the IN_LIST operator.
Corresponds to the JSON property expressions
1163 1164 1165 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1163 def expressions @expressions end |
#not ⇒ Boolean Also known as: not?
Logical NOT operator. If this boolean is set to true, then the matching
dimension values will be excluded in the report. The default is false.
Corresponds to the JSON property not
1154 1155 1156 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1154 def not @not end |
#operator ⇒ String
How to match the dimension to the expression. The default is REGEXP.
Corresponds to the JSON property operator
1148 1149 1150 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1148 def operator @operator end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1176 1177 1178 1179 1180 1181 1182 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1176 def update!(**args) @dimension_name = args[:dimension_name] if args.key?(:dimension_name) @operator = args[:operator] if args.key?(:operator) @not = args[:not] if args.key?(:not) @expressions = args[:expressions] if args.key?(:expressions) @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive) end |