Class: Google::Apis::AnalyticsreportingV4::CustomDimension
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::CustomDimension
- 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
-
#index ⇒ Fixnum
Slot number of custom dimension.
-
#value ⇒ String
Value of the custom dimension.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomDimension
constructor
A new instance of CustomDimension.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#index ⇒ Fixnum
Slot number of custom dimension.
Corresponds to the JSON property index
271 272 273 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 271 def index @index end |
#value ⇒ String
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
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 |