Class: Google::Apis::AnalyticsreportingV4::Segment
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::Segment
- 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
The segment definition, if the report needs to be segmented. A Segment is a subset of the Analytics data. For example, of the entire set of users, one Segment might be users from a particular country or city.
Instance Attribute Summary collapse
-
#dynamic_segment ⇒ Google::Apis::AnalyticsreportingV4::DynamicSegment
Dynamic segment definition for defining the segment within the request.
-
#segment_id ⇒ String
The segment ID of a built-in or custom segment, for example
gaid::-3
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Segment
constructor
A new instance of Segment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Segment
Returns a new instance of Segment
704 705 706 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 704 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dynamic_segment ⇒ Google::Apis::AnalyticsreportingV4::DynamicSegment
Dynamic segment definition for defining the segment within the request.
A segment can select users, sessions or both.
Corresponds to the JSON property dynamicSegment
697 698 699 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 697 def dynamic_segment @dynamic_segment end |
#segment_id ⇒ String
The segment ID of a built-in or custom segment, for example gaid::-3
.
Corresponds to the JSON property segmentId
702 703 704 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 702 def segment_id @segment_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
709 710 711 712 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 709 def update!(**args) @dynamic_segment = args[:dynamic_segment] if args.key?(:dynamic_segment) @segment_id = args[:segment_id] if args.key?(:segment_id) end |