Class: Google::Apis::DatamanagerV1::EventParameter

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

Overview

Event parameter for GA4 events.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EventParameter

Returns a new instance of EventParameter.



1207
1208
1209
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1207

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

Instance Attribute Details

#parameter_nameString

Required. The name of the parameter to use. Corresponds to the JSON property parameterName

Returns:

  • (String)


1200
1201
1202
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1200

def parameter_name
  @parameter_name
end

#valueString

Required. The string representation of the value of the parameter to set. Corresponds to the JSON property value

Returns:

  • (String)


1205
1206
1207
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1205

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1212
1213
1214
1215
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1212

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