Class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause

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

A group of dimension filters. Set the operator value to specify how the filters are logically combined.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DimensionFilterClause

Returns a new instance of DimensionFilterClause.



454
455
456
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 454

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

Instance Attribute Details

#filtersArray<Google::Apis::AnalyticsreportingV4::DimensionFilter>

The repeated set of filters. They are logically combined based on the operator specified. Corresponds to the JSON property filters



446
447
448
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 446

def filters
  @filters
end

#operatorString

The operator for combining multiple dimension filters. If unspecified, it is treated as an OR. Corresponds to the JSON property operator

Returns:

  • (String)


452
453
454
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 452

def operator
  @operator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



459
460
461
462
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 459

def update!(**args)
  @filters = args[:filters] if args.key?(:filters)
  @operator = args[:operator] if args.key?(:operator)
end