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



546
547
548
# File 'generated/google/apis/partners_v2/classes.rb', line 546

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

Instance Attribute Details

#keyString

Data type. Corresponds to the JSON property key

Returns:

  • (String)


544
545
546
# File 'generated/google/apis/partners_v2/classes.rb', line 544

def key
  @key
end

#valuesArray<String>

Data values. Corresponds to the JSON property values

Returns:

  • (Array<String>)


539
540
541
# File 'generated/google/apis/partners_v2/classes.rb', line 539

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



551
552
553
554
# File 'generated/google/apis/partners_v2/classes.rb', line 551

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