Class: Google::Apis::AnalyticsreportingV4::SegmentDefinition

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analyticsreporting_v4/classes.rb,
lib/google/apis/analyticsreporting_v4/representations.rb,
lib/google/apis/analyticsreporting_v4/representations.rb

Overview

SegmentDefinition defines the segment to be a set of SegmentFilters which are combined together with a logical AND operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SegmentDefinition

Returns a new instance of SegmentDefinition.



1665
1666
1667
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1665

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

Instance Attribute Details

#segment_filtersArray<Google::Apis::AnalyticsreportingV4::SegmentFilter>

A segment is defined by a set of segment filters which are combined together with a logical AND operation. Corresponds to the JSON property segmentFilters



1663
1664
1665
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1663

def segment_filters
  @segment_filters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1670
1671
1672
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1670

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