Class: Google::Apis::YoutubeV3::ChannelSectionContentDetails

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

Details about a channelsection, including playlists and channels.

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

Returns a new instance of ChannelSectionContentDetails



1444
1445
1446
# File 'generated/google/apis/youtube_v3/classes.rb', line 1444

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

Instance Attribute Details

#channelsArray<String>

The channel ids for type multiple_channels. Corresponds to the JSON property channels

Returns:

  • (Array<String>)


1436
1437
1438
# File 'generated/google/apis/youtube_v3/classes.rb', line 1436

def channels
  @channels
end

#playlistsArray<String>

The playlist ids for type single_playlist and multiple_playlists. For singlePlaylist, only one playlistId is allowed. Corresponds to the JSON property playlists

Returns:

  • (Array<String>)


1442
1443
1444
# File 'generated/google/apis/youtube_v3/classes.rb', line 1442

def playlists
  @playlists
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1449
1450
1451
1452
# File 'generated/google/apis/youtube_v3/classes.rb', line 1449

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