Class: Google::Apis::AnalyticsreportingV4::CustomDimension

Inherits:
Object
  • Object
show all
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

Custom dimension.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CustomDimension

Returns a new instance of CustomDimension.


279
280
281
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 279

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#indexFixnum

Slot number of custom dimension. Corresponds to the JSON property index

Returns:

  • (Fixnum)

271
272
273
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 271

def index
  @index
end

#valueString

Value of the custom dimension. Default value (i.e. empty string) indicates clearing sesion/visitor scope custom dimension value. Corresponds to the JSON property value

Returns:

  • (String)

277
278
279
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 277

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


284
285
286
287
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 284

def update!(**args)
  @index = args[:index] if args.key?(:index)
  @value = args[:value] if args.key?(:value)
end