class Google::Apis::YoutubeV3::SearchResultSnippet

Basic details about a search result, including title, description and thumbnails of the item referenced by the search result.

Attributes

channel_id[RW]

The value that YouTube uses to uniquely identify the channel that published the resource that the search result identifies. Corresponds to the JSON property `channelId` @return [String]

channel_title[RW]

The title of the channel that published the resource that the search result identifies. Corresponds to the JSON property `channelTitle` @return [String]

description[RW]

A description of the search result. Corresponds to the JSON property `description` @return [String]

live_broadcast_content[RW]

It indicates if the resource (video or channel) has upcoming/active live broadcast content. Or it's “none” if there is not any upcoming/active live broadcasts. Corresponds to the JSON property `liveBroadcastContent` @return [String]

published_at[RW]

The creation date and time of the resource that the search result identifies. Corresponds to the JSON property `publishedAt` @return [DateTime]

thumbnails[RW]

Internal representation of thumbnails for a YouTube resource. Corresponds to the JSON property `thumbnails` @return [Google::Apis::YoutubeV3::ThumbnailDetails]

title[RW]

The title of the search result. Corresponds to the JSON property `title` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/youtube_v3/classes.rb, line 6358
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/youtube_v3/classes.rb, line 6363
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)
  @live_broadcast_content = args[:live_broadcast_content] if args.key?(:live_broadcast_content)
  @published_at = args[:published_at] if args.key?(:published_at)
  @thumbnails = args[:thumbnails] if args.key?(:thumbnails)
  @title = args[:title] if args.key?(:title)
end