Class: Google::Apis::YoutubeV3::VideoSnippet
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::YoutubeV3::VideoSnippet
 
- 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 video, including title, description, uploader, thumbnails and category.
Instance Attribute Summary collapse
- 
  
    
      #category_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The YouTube video category associated with the video. 
- 
  
    
      #channel_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID that YouTube uses to uniquely identify the channel that the video was uploaded to. 
- 
  
    
      #channel_title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Channel title for the channel that the video belongs to. 
- 
  
    
      #default_audio_language  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The default_audio_language property specifies the language spoken in the video' s default audio track. 
- 
  
    
      #default_language  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The language of the videos's default snippet. 
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The video's description. 
- 
  
    
      #live_broadcast_content  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Indicates if the video is an upcoming/active live broadcast. 
- 
  
    
      #localized  ⇒ Google::Apis::YoutubeV3::VideoLocalization 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Localized versions of certain video properties (e.g. title). 
- 
  
    
      #published_at  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The date and time that the video was uploaded. 
- 
  
    
      #tags  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of keyword tags associated with the video. 
- 
  
    
      #thumbnails  ⇒ Google::Apis::YoutubeV3::ThumbnailDetails 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Internal representation of thumbnails for a YouTube resource. 
- 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The video's title. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ VideoSnippet 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of VideoSnippet. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VideoSnippet
Returns a new instance of VideoSnippet
| 8170 8171 8172 | # File 'generated/google/apis/youtube_v3/classes.rb', line 8170 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#category_id ⇒ String
The YouTube video category associated with the video.
Corresponds to the JSON property categoryId
| 8109 8110 8111 | # File 'generated/google/apis/youtube_v3/classes.rb', line 8109 def category_id @category_id end | 
#channel_id ⇒ String
The ID that YouTube uses to uniquely identify the channel that the video was
uploaded to.
Corresponds to the JSON property channelId
| 8115 8116 8117 | # File 'generated/google/apis/youtube_v3/classes.rb', line 8115 def channel_id @channel_id end | 
#channel_title ⇒ String
Channel title for the channel that the video belongs to.
Corresponds to the JSON property channelTitle
| 8120 8121 8122 | # File 'generated/google/apis/youtube_v3/classes.rb', line 8120 def channel_title @channel_title end | 
#default_audio_language ⇒ String
The default_audio_language property specifies the language spoken in the video'
s default audio track.
Corresponds to the JSON property defaultAudioLanguage
| 8126 8127 8128 | # File 'generated/google/apis/youtube_v3/classes.rb', line 8126 def default_audio_language @default_audio_language end | 
#default_language ⇒ String
The language of the videos's default snippet.
Corresponds to the JSON property defaultLanguage
| 8131 8132 8133 | # File 'generated/google/apis/youtube_v3/classes.rb', line 8131 def default_language @default_language end | 
#description ⇒ String
The video's description.
Corresponds to the JSON property description
| 8136 8137 8138 | # File 'generated/google/apis/youtube_v3/classes.rb', line 8136 def description @description end | 
#live_broadcast_content ⇒ String
Indicates if the video is an upcoming/active live broadcast. Or it's "none" if
the video is not an upcoming/active live broadcast.
Corresponds to the JSON property liveBroadcastContent
| 8142 8143 8144 | # File 'generated/google/apis/youtube_v3/classes.rb', line 8142 def live_broadcast_content @live_broadcast_content end | 
#localized ⇒ Google::Apis::YoutubeV3::VideoLocalization
Localized versions of certain video properties (e.g. title).
Corresponds to the JSON property localized
| 8147 8148 8149 | # File 'generated/google/apis/youtube_v3/classes.rb', line 8147 def localized @localized end | 
#published_at ⇒ DateTime
The date and time that the video was uploaded. The value is specified in ISO
8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
Corresponds to the JSON property publishedAt
| 8153 8154 8155 | # File 'generated/google/apis/youtube_v3/classes.rb', line 8153 def published_at @published_at end | 
#tags ⇒ Array<String>
A list of keyword tags associated with the video. Tags may contain spaces.
Corresponds to the JSON property tags
| 8158 8159 8160 | # File 'generated/google/apis/youtube_v3/classes.rb', line 8158 def @tags end | 
#thumbnails ⇒ Google::Apis::YoutubeV3::ThumbnailDetails
Internal representation of thumbnails for a YouTube resource.
Corresponds to the JSON property thumbnails
| 8163 8164 8165 | # File 'generated/google/apis/youtube_v3/classes.rb', line 8163 def thumbnails @thumbnails end | 
#title ⇒ String
The video's title.
Corresponds to the JSON property title
| 8168 8169 8170 | # File 'generated/google/apis/youtube_v3/classes.rb', line 8168 def title @title end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 | # File 'generated/google/apis/youtube_v3/classes.rb', line 8175 def update!(**args) @category_id = args[:category_id] if args.key?(:category_id) @channel_id = args[:channel_id] if args.key?(:channel_id) @channel_title = args[:channel_title] if args.key?(:channel_title) @default_audio_language = args[:default_audio_language] if args.key?(:default_audio_language) @default_language = args[:default_language] if args.key?(:default_language) @description = args[:description] if args.key?(:description) @live_broadcast_content = args[:live_broadcast_content] if args.key?(:live_broadcast_content) @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 |