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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/doubleclicksearch_v2/classes.rb,
generated/google/apis/doubleclicksearch_v2/representations.rb,
generated/google/apis/doubleclicksearch_v2/representations.rb

Overview

A message containing the custome 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



352
353
354
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 352

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

Instance Attribute Details

#nameString

Custom dimension name. Corresponds to the JSON property name

Returns:

  • (String)


345
346
347
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 345

def name
  @name
end

#valueString

Custom dimension value. Corresponds to the JSON property value

Returns:

  • (String)


350
351
352
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 350

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



357
358
359
360
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 357

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