Class: Google::Apis::AnalyticsreportingV4::SegmentFilterClause
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::SegmentFilterClause
- 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
-
#dimension_filter ⇒ Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter
Dimension filter specifies the filtering options on a dimension.
-
#metric_filter ⇒ Google::Apis::AnalyticsreportingV4::SegmentMetricFilter
Metric filter to be used in a segment filter clause.
-
#not ⇒ Boolean
(also: #not?)
Matches the complement (
!
) of the filter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SegmentFilterClause
constructor
A new instance of SegmentFilterClause.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SegmentFilterClause
Returns a new instance of SegmentFilterClause
1337 1338 1339 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1337 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dimension_filter ⇒ Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter
Dimension filter specifies the filtering options on a dimension.
Corresponds to the JSON property dimensionFilter
1324 1325 1326 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1324 def dimension_filter @dimension_filter end |
#metric_filter ⇒ Google::Apis::AnalyticsreportingV4::SegmentMetricFilter
Metric filter to be used in a segment filter clause.
Corresponds to the JSON property metricFilter
1329 1330 1331 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1329 def metric_filter @metric_filter end |
#not ⇒ Boolean Also known as: not?
Matches the complement (!
) of the filter.
Corresponds to the JSON property not
1334 1335 1336 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1334 def not @not end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1342 1343 1344 1345 1346 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1342 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 |