Class: Google::Apis::AnalyticsreportingV4::DynamicSegment
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::DynamicSegment
- 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
Dynamic segment definition for defining the segment within the request. A segment can select users, sessions or both.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the dynamic segment.
-
#session_segment ⇒ Google::Apis::AnalyticsreportingV4::SegmentDefinition
SegmentDefinition defines the segment to be a set of SegmentFilters which are combined together with a logical
AND
operation. -
#user_segment ⇒ Google::Apis::AnalyticsreportingV4::SegmentDefinition
SegmentDefinition defines the segment to be a set of SegmentFilters which are combined together with a logical
AND
operation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DynamicSegment
constructor
A new instance of DynamicSegment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DynamicSegment
Returns a new instance of DynamicSegment
1213 1214 1215 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1213 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the dynamic segment.
Corresponds to the JSON property name
1205 1206 1207 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1205 def name @name end |
#session_segment ⇒ Google::Apis::AnalyticsreportingV4::SegmentDefinition
SegmentDefinition defines the segment to be a set of SegmentFilters which
are combined together with a logical AND
operation.
Corresponds to the JSON property sessionSegment
1200 1201 1202 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1200 def session_segment @session_segment end |
#user_segment ⇒ Google::Apis::AnalyticsreportingV4::SegmentDefinition
SegmentDefinition defines the segment to be a set of SegmentFilters which
are combined together with a logical AND
operation.
Corresponds to the JSON property userSegment
1211 1212 1213 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1211 def user_segment @user_segment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1218 1219 1220 1221 1222 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1218 def update!(**args) @session_segment = args[:session_segment] if args.key?(:session_segment) @name = args[:name] if args.key?(:name) @user_segment = args[:user_segment] if args.key?(:user_segment) end |