class Google::Apis::AnalyticsV3::CustomDimension

JSON template for Analytics Custom Dimension.

Attributes

account_id[RW]

Account ID. Corresponds to the JSON property `accountId` @return [String]

active[RW]

Boolean indicating whether the custom dimension is active. Corresponds to the JSON property `active` @return [Boolean]

active?[RW]

Boolean indicating whether the custom dimension is active. Corresponds to the JSON property `active` @return [Boolean]

created[RW]

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

id[RW]

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

index[RW]

Index of the custom dimension. Corresponds to the JSON property `index` @return [Fixnum]

kind[RW]

Kind value for a custom dimension. Set to “analytics#customDimension”. It is a read-only field. Corresponds to the JSON property `kind` @return [String]

name[RW]

Name of the custom dimension. Corresponds to the JSON property `name` @return [String]

scope[RW]

Scope of the custom dimension: HIT, SESSION, USER or PRODUCT. Corresponds to the JSON property `scope` @return [String]

updated[RW]

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

web_property_id[RW]

Property ID. Corresponds to the JSON property `webPropertyId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/analytics_v3/classes.rb, line 925
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 930
def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @active = args[:active] if args.key?(:active)
  @created = args[:created] if args.key?(:created)
  @id = args[:id] if args.key?(:id)
  @index = args[:index] if args.key?(:index)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @parent_link = args[:parent_link] if args.key?(:parent_link)
  @scope = args[:scope] if args.key?(:scope)
  @self_link = args[:self_link] if args.key?(:self_link)
  @updated = args[:updated] if args.key?(:updated)
  @web_property_id = args[:web_property_id] if args.key?(:web_property_id)
end