Class: Google::Apis::YoutubeV3::SearchResultSnippet
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::SearchResultSnippet
- 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 search result, including title, description and thumbnails of the item referenced by the search result.
Instance Attribute Summary collapse
-
#channel_id ⇒ String
The value that YouTube uses to uniquely identify the channel that published the resource that the search result identifies.
-
#channel_title ⇒ String
The title of the channel that published the resource that the search result identifies.
-
#description ⇒ String
A description of the search result.
-
#live_broadcast_content ⇒ String
It indicates if the resource (video or channel) has upcoming/active live broadcast content.
-
#published_at ⇒ DateTime
The creation date and time of the resource that the search result identifies.
-
#thumbnails ⇒ Google::Apis::YoutubeV3::ThumbnailDetails
Internal representation of thumbnails for a YouTube resource.
-
#title ⇒ String
The title of the search result.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SearchResultSnippet
constructor
A new instance of SearchResultSnippet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SearchResultSnippet
Returns a new instance of SearchResultSnippet
6146 6147 6148 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6146 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channel_id ⇒ String
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
6110 6111 6112 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6110 def channel_id @channel_id end |
#channel_title ⇒ String
The title of the channel that published the resource that the search result
identifies.
Corresponds to the JSON property channelTitle
6116 6117 6118 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6116 def channel_title @channel_title end |
#description ⇒ String
A description of the search result.
Corresponds to the JSON property description
6121 6122 6123 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6121 def description @description end |
#live_broadcast_content ⇒ String
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
6128 6129 6130 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6128 def live_broadcast_content @live_broadcast_content end |
#published_at ⇒ DateTime
The creation date and time of the resource that the search result identifies.
The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
Corresponds to the JSON property publishedAt
6134 6135 6136 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6134 def published_at @published_at end |
#thumbnails ⇒ Google::Apis::YoutubeV3::ThumbnailDetails
Internal representation of thumbnails for a YouTube resource.
Corresponds to the JSON property thumbnails
6139 6140 6141 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6139 def thumbnails @thumbnails end |
#title ⇒ String
The title of the search result.
Corresponds to the JSON property title
6144 6145 6146 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6144 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6151 6152 6153 6154 6155 6156 6157 6158 6159 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6151 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 |