Class: Google::Apis::YoutubeV3::ChannelContentOwnerDetails

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

Overview

The contentOwnerDetails object encapsulates channel data that is relevant for YouTube Partners linked with the channel.

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

Returns a new instance of ChannelContentOwnerDetails



1187
1188
1189
# File 'generated/google/apis/youtube_v3/classes.rb', line 1187

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

Instance Attribute Details

#content_ownerString

The ID of the content owner linked to the channel. Corresponds to the JSON property contentOwner

Returns:

  • (String)


1179
1180
1181
# File 'generated/google/apis/youtube_v3/classes.rb', line 1179

def content_owner
  @content_owner
end

#time_linkedDateTime

The date and time of when the channel was linked to the content owner. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. Corresponds to the JSON property timeLinked

Returns:

  • (DateTime)


1185
1186
1187
# File 'generated/google/apis/youtube_v3/classes.rb', line 1185

def time_linked
  @time_linked
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1192
1193
1194
1195
# File 'generated/google/apis/youtube_v3/classes.rb', line 1192

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