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.



4983
4984
4985
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4983

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

Instance Attribute Details

#indexFixnum

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

Returns:

  • (Fixnum)


4969
4970
4971
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4969

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)


4975
4976
4977
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4975

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)


4981
4982
4983
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4981

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4988
4989
4990
4991
4992
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4988

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