Class: Google::Apis::DfareportingV3_4::CustomVariable

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

Overview

Custom variable.

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) ⇒ CustomVariable

Returns a new instance of CustomVariable.



5051
5052
5053
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 5051

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

Instance Attribute Details

#indexFixnum

The index of the custom variable. Corresponds to the JSON property index

Returns:

  • (Fixnum)


5037
5038
5039
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 5037

def index
  @index
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#customVariable". Corresponds to the JSON property kind

Returns:

  • (String)


5043
5044
5045
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 5043

def kind
  @kind
end

#valueString

The value of the custom variable. The length of string must not exceed 50 characters. Corresponds to the JSON property value

Returns:

  • (String)


5049
5050
5051
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 5049

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5056
5057
5058
5059
5060
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 5056

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