Class: Google::Apis::PartnersV2::EventData

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

Overview

Key value data pair for an event.

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

Returns a new instance of EventData



849
850
851
# File 'generated/google/apis/partners_v2/classes.rb', line 849

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

Instance Attribute Details

#keyString

Data type. Corresponds to the JSON property key

Returns:

  • (String)


842
843
844
# File 'generated/google/apis/partners_v2/classes.rb', line 842

def key
  @key
end

#valuesArray<String>

Data values. Corresponds to the JSON property values

Returns:

  • (Array<String>)


847
848
849
# File 'generated/google/apis/partners_v2/classes.rb', line 847

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



854
855
856
857
# File 'generated/google/apis/partners_v2/classes.rb', line 854

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