Class: Google::Apis::DoubleclicksearchV2::CustomDimension

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomDimension

Returns a new instance of CustomDimension.



363
364
365
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 363

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

Instance Attribute Details

#nameString

Custom dimension name. Corresponds to the JSON property name

Returns:

  • (String)


356
357
358
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 356

def name
  @name
end

#valueString

Custom dimension value. Corresponds to the JSON property value

Returns:

  • (String)


361
362
363
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 361

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



368
369
370
371
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 368

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