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

Constructor Details

#initialize(**args) ⇒ CustomVariable

Returns a new instance of CustomVariable.



5030
5031
5032
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 5030

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

Instance Attribute Details

#indexFixnum

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

Returns:

  • (Fixnum)


5016
5017
5018
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 5016

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)


5022
5023
5024
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 5022

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)


5028
5029
5030
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 5028

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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