class Google::Apis::AnalyticsreportingV4::SegmentFilterClause

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

Attributes

dimension_filter[RW]

Dimension filter specifies the filtering options on a dimension. Corresponds to the JSON property `dimensionFilter` @return [Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter]

metric_filter[RW]

Metric filter to be used in a segment filter clause. Corresponds to the JSON property `metricFilter` @return [Google::Apis::AnalyticsreportingV4::SegmentMetricFilter]

not[RW]

Matches the complement (`!`) of the filter. Corresponds to the JSON property `not` @return [Boolean]

not?[RW]

Matches the complement (`!`) of the filter. Corresponds to the JSON property `not` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 1783
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/analyticsreporting_v4/classes.rb, line 1788
def update!(**args)
  @dimension_filter = args[:dimension_filter] if args.key?(:dimension_filter)
  @metric_filter = args[:metric_filter] if args.key?(:metric_filter)
  @not = args[:not] if args.key?(:not)
end