Class: Google::Apis::DoubleclicksearchV2::CustomDimension
- Inherits:
-
Object
- Object
- Google::Apis::DoubleclicksearchV2::CustomDimension
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/doubleclicksearch_v2/classes.rb,
lib/google/apis/doubleclicksearch_v2/representations.rb,
lib/google/apis/doubleclicksearch_v2/representations.rb
Overview
A message containing the custom dimension.
Instance Attribute Summary collapse
-
#name ⇒ String
Custom dimension name.
-
#value ⇒ String
Custom dimension value.
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.
372 373 374 |
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 372 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Custom dimension name.
Corresponds to the JSON property name
365 366 367 |
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 365 def name @name end |
#value ⇒ String
Custom dimension value.
Corresponds to the JSON property value
370 371 372 |
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 370 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
377 378 379 380 |
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 377 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |