class Google::Apis::AnalyticsV3::Segment

JSON template for an Analytics segment.

Attributes

created[RW]

Time the segment was created. Corresponds to the JSON property `created` @return [DateTime]

definition[RW]

Segment definition. Corresponds to the JSON property `definition` @return [String]

id[RW]

Segment ID. Corresponds to the JSON property `id` @return [String]

kind[RW]

Resource type for Analytics segment. Corresponds to the JSON property `kind` @return [String]

name[RW]

Segment name. Corresponds to the JSON property `name` @return [String]

segment_id[RW]

Segment ID. Can be used with the 'segment' parameter in Core Reporting API. Corresponds to the JSON property `segmentId` @return [String]

type[RW]

Type for a segment. Possible values are “BUILT_IN” or “CUSTOM”. Corresponds to the JSON property `type` @return [String]

updated[RW]

Time the segment was last modified. Corresponds to the JSON property `updated` @return [DateTime]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/analytics_v3/classes.rb, line 4857
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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