Class: Google::Apis::YoutubePartnerV1::ClaimEvent::Source

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

Overview

Data related to source of the 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) ⇒ Source

Returns a new instance of Source.



1018
1019
1020
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1018

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

Instance Attribute Details

#content_owner_idString

Id of content owner that initiated the event. Corresponds to the JSON property contentOwnerId

Returns:

  • (String)


1006
1007
1008
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1006

def content_owner_id
  @content_owner_id
end

#typeString

Type of the event source. Corresponds to the JSON property type

Returns:

  • (String)


1011
1012
1013
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1011

def type
  @type
end

#user_emailString

Email of user who initiated the event. Corresponds to the JSON property userEmail

Returns:

  • (String)


1016
1017
1018
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1016

def user_email
  @user_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1023
1024
1025
1026
1027
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1023

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