class Google::Apis::AnalyticsV3::Segment
JSON template for an Analytics segment.
Attributes
Time the segment was created. Corresponds to the JSON property `created` @return [DateTime]
Segment
definition. Corresponds to the JSON property `definition` @return [String]
Segment
ID. Corresponds to the JSON property `id` @return [String]
Resource type for Analytics segment. Corresponds to the JSON property `kind` @return [String]
Segment
name. Corresponds to the JSON property `name` @return [String]
Segment
ID. Can be used with the 'segment' parameter in Core Reporting API. Corresponds to the JSON property `segmentId` @return [String]
Link for this segment. Corresponds to the JSON property `selfLink` @return [String]
Type for a segment. Possible values are “BUILT_IN” or “CUSTOM”. Corresponds to the JSON property `type` @return [String]
Time the segment was last modified. Corresponds to the JSON property `updated` @return [DateTime]
Public Class Methods
# File lib/google/apis/analytics_v3/classes.rb, line 4857 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/analytics_v3/classes.rb, line 4862 def update!(**args) @created = args[:created] if args.key?(:created) @definition = args[:definition] if args.key?(:definition) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @segment_id = args[:segment_id] if args.key?(:segment_id) @self_link = args[:self_link] if args.key?(:self_link) @type = args[:type] if args.key?(:type) @updated = args[:updated] if args.key?(:updated) end