Class: Google::Apis::YoutubeV3::PlaylistSnippet

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

Basic details about a playlist, including title, description and thumbnails.

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

Returns a new instance of PlaylistSnippet.


5895
5896
5897
# File 'generated/google/apis/youtube_v3/classes.rb', line 5895

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

Instance Attribute Details

#channel_idString

The ID that YouTube uses to uniquely identify the channel that published the playlist. Corresponds to the JSON property channelId

Returns:

  • (String)

5852
5853
5854
# File 'generated/google/apis/youtube_v3/classes.rb', line 5852

def channel_id
  @channel_id
end

#channel_titleString

The channel title of the channel that the video belongs to. Corresponds to the JSON property channelTitle

Returns:

  • (String)

5857
5858
5859
# File 'generated/google/apis/youtube_v3/classes.rb', line 5857

def channel_title
  @channel_title
end

#default_languageString

The language of the playlist's default title and description. Corresponds to the JSON property defaultLanguage

Returns:

  • (String)

5862
5863
5864
# File 'generated/google/apis/youtube_v3/classes.rb', line 5862

def default_language
  @default_language
end

#descriptionString

The playlist's description. Corresponds to the JSON property description

Returns:

  • (String)

5867
5868
5869
# File 'generated/google/apis/youtube_v3/classes.rb', line 5867

def description
  @description
end

#localizedGoogle::Apis::YoutubeV3::PlaylistLocalization

Playlist localization setting Corresponds to the JSON property localized


5872
5873
5874
# File 'generated/google/apis/youtube_v3/classes.rb', line 5872

def localized
  @localized
end

#published_atDateTime

The date and time that the playlist was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. Corresponds to the JSON property publishedAt

Returns:

  • (DateTime)

5878
5879
5880
# File 'generated/google/apis/youtube_v3/classes.rb', line 5878

def published_at
  @published_at
end

#tagsArray<String>

Keyword tags associated with the playlist. Corresponds to the JSON property tags

Returns:

  • (Array<String>)

5883
5884
5885
# File 'generated/google/apis/youtube_v3/classes.rb', line 5883

def tags
  @tags
end

#thumbnailsGoogle::Apis::YoutubeV3::ThumbnailDetails

Internal representation of thumbnails for a YouTube resource. Corresponds to the JSON property thumbnails


5888
5889
5890
# File 'generated/google/apis/youtube_v3/classes.rb', line 5888

def thumbnails
  @thumbnails
end

#titleString

The playlist's title. Corresponds to the JSON property title

Returns:

  • (String)

5893
5894
5895
# File 'generated/google/apis/youtube_v3/classes.rb', line 5893

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
# File 'generated/google/apis/youtube_v3/classes.rb', line 5900

def update!(**args)
  @channel_id = args[:channel_id] if args.key?(:channel_id)
  @channel_title = args[:channel_title] if args.key?(:channel_title)
  @default_language = args[:default_language] if args.key?(:default_language)
  @description = args[:description] if args.key?(:description)
  @localized = args[:localized] if args.key?(:localized)
  @published_at = args[:published_at] if args.key?(:published_at)
  @tags = args[:tags] if args.key?(:tags)
  @thumbnails = args[:thumbnails] if args.key?(:thumbnails)
  @title = args[:title] if args.key?(:title)
end