Class: Google::Apis::DisplayvideoV3::YoutubeVideoDetails
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV3::YoutubeVideoDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v3/classes.rb,
lib/google/apis/displayvideo_v3/representations.rb,
lib/google/apis/displayvideo_v3/representations.rb
Overview
Details of a YouTube video.
Instance Attribute Summary collapse
-
#id ⇒ String
The YouTube video ID which can be searched on YouTube webpage.
-
#unavailable_reason ⇒ String
The reason why the video data is not available.
Instance Method Summary collapse
-
#initialize(**args) ⇒ YoutubeVideoDetails
constructor
A new instance of YoutubeVideoDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ YoutubeVideoDetails
Returns a new instance of YoutubeVideoDetails.
12983 12984 12985 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12983 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
The YouTube video ID which can be searched on YouTube webpage.
Corresponds to the JSON property id
12976 12977 12978 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12976 def id @id end |
#unavailable_reason ⇒ String
The reason why the video data is not available.
Corresponds to the JSON property unavailableReason
12981 12982 12983 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12981 def unavailable_reason @unavailable_reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12988 12989 12990 12991 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12988 def update!(**args) @id = args[:id] if args.key?(:id) @unavailable_reason = args[:unavailable_reason] if args.key?(:unavailable_reason) end |