Class: Google::Apis::AnalyticsreportingV4::SegmentFilterClause

Inherits:
Object
  • Object
show all
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

Filter Clause to be used in a segment definition, can be wither a metric or a dimension filter.

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

Returns a new instance of SegmentFilterClause



1271
1272
1273
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1271

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

Instance Attribute Details

#dimension_filterGoogle::Apis::AnalyticsreportingV4::SegmentDimensionFilter

Dimension filter specifies the filtering options on a dimension. Corresponds to the JSON property dimensionFilter



1269
1270
1271
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1269

def dimension_filter
  @dimension_filter
end

#metric_filterGoogle::Apis::AnalyticsreportingV4::SegmentMetricFilter

Metric filter to be used in a segment filter clause. Corresponds to the JSON property metricFilter



1258
1259
1260
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1258

def metric_filter
  @metric_filter
end

#notBoolean Also known as: not?

Matches the complement (!) of the filter. Corresponds to the JSON property not

Returns:

  • (Boolean)


1263
1264
1265
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1263

def not
  @not
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1276
1277
1278
1279
1280
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1276

def update!(**args)
  @metric_filter = args[:metric_filter] if args.key?(:metric_filter)
  @not = args[:not] if args.key?(:not)
  @dimension_filter = args[:dimension_filter] if args.key?(:dimension_filter)
end