Class: Google::Apis::YoutubeV3::PlaylistItemSnippet
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::PlaylistItemSnippet
- 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
-
#channel_id ⇒ String
The ID that YouTube uses to uniquely identify the user that added the item to the playlist.
-
#channel_title ⇒ String
Channel title for the channel that the playlist item belongs to.
-
#description ⇒ String
The item's description.
-
#playlist_id ⇒ String
The ID that YouTube uses to uniquely identify the playlist that the playlist item is in.
-
#position ⇒ Fixnum
The order in which the item appears in the playlist.
-
#published_at ⇒ DateTime
The date and time that the item was added to the playlist.
-
#resource_id ⇒ Google::Apis::YoutubeV3::ResourceId
A resource id is a generic reference that points to another YouTube resource.
-
#thumbnails ⇒ Google::Apis::YoutubeV3::ThumbnailDetails
Internal representation of thumbnails for a YouTube resource.
-
#title ⇒ String
The item's title.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PlaylistItemSnippet
constructor
A new instance of PlaylistItemSnippet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PlaylistItemSnippet
Returns a new instance of PlaylistItemSnippet.
6035 6036 6037 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6035 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channel_id ⇒ String
The ID that YouTube uses to uniquely identify the user that added the item to
the playlist.
Corresponds to the JSON property channelId
5989 5990 5991 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5989 def channel_id @channel_id end |
#channel_title ⇒ String
Channel title for the channel that the playlist item belongs to.
Corresponds to the JSON property channelTitle
5994 5995 5996 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5994 def channel_title @channel_title end |
#description ⇒ String
The item's description.
Corresponds to the JSON property description
5999 6000 6001 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5999 def description @description end |
#playlist_id ⇒ String
The ID that YouTube uses to uniquely identify the playlist that the playlist
item is in.
Corresponds to the JSON property playlistId
6005 6006 6007 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6005 def playlist_id @playlist_id end |
#position ⇒ Fixnum
The order in which the item appears in the playlist. The value uses a zero-
based index, so the first item has a position of 0, the second item has a
position of 1, and so forth.
Corresponds to the JSON property position
6012 6013 6014 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6012 def position @position end |
#published_at ⇒ DateTime
The date and time that the item was added to the playlist. The value is
specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
Corresponds to the JSON property publishedAt
6018 6019 6020 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6018 def published_at @published_at end |
#resource_id ⇒ Google::Apis::YoutubeV3::ResourceId
A resource id is a generic reference that points to another YouTube resource.
Corresponds to the JSON property resourceId
6023 6024 6025 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6023 def resource_id @resource_id end |
#thumbnails ⇒ Google::Apis::YoutubeV3::ThumbnailDetails
Internal representation of thumbnails for a YouTube resource.
Corresponds to the JSON property thumbnails
6028 6029 6030 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6028 def thumbnails @thumbnails end |
#title ⇒ String
The item's title.
Corresponds to the JSON property title
6033 6034 6035 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6033 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6040 def update!(**args) @channel_id = args[:channel_id] if args.key?(:channel_id) @channel_title = args[:channel_title] if args.key?(:channel_title) @description = args[:description] if args.key?(:description) @playlist_id = args[:playlist_id] if args.key?(:playlist_id) @position = args[:position] if args.key?(:position) @published_at = args[:published_at] if args.key?(:published_at) @resource_id = args[:resource_id] if args.key?(:resource_id) @thumbnails = args[:thumbnails] if args.key?(:thumbnails) @title = args[:title] if args.key?(:title) end |