Class: Google::Apis::DisplayvideoV3::YoutubeVideoDetails

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ YoutubeVideoDetails

Returns a new instance of YoutubeVideoDetails.



12847
12848
12849
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12847

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idString

The YouTube video ID which can be searched on YouTube webpage. Corresponds to the JSON property id

Returns:

  • (String)


12840
12841
12842
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12840

def id
  @id
end

#unavailable_reasonString

The reason why the video data is not available. Corresponds to the JSON property unavailableReason

Returns:

  • (String)


12845
12846
12847
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12845

def unavailable_reason
  @unavailable_reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12852
12853
12854
12855
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12852

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @unavailable_reason = args[:unavailable_reason] if args.key?(:unavailable_reason)
end